---
layout: documentation
title: 'Source/Urho3D/AngelScript/Script.h File Reference'
group: HEAD
---
{% comment %}{% endcomment %}
#include "../Core/Mutex.h"
#include "../Core/Object.h"
|
| enum | Urho3D::DumpMode { DOXYGEN = 0,
C_HEADER,
MAX_DUMP_MODES
} |
| | Output mode for DumpAPI method.
|
| |
|
|
void | Urho3D::RegisterScriptLibrary (Context *context) |
| | Register Script library objects.
|
| |
|
|
const char * | Urho3D::LOGIC_CATEGORY = "Logic" |
| |
bool inOrder_
In order flag.
Definition: Connection.h:64
void GetScriptAttributes()
Check for script attributes.
Definition: ScriptInstance.cpp:632
void SetHorizontalAlignment(HorizontalAlignment align)
Set horizontal alignment.
Definition: Text3D.cpp:240
unsigned long long GetMemoryBudget(StringHash type) const
Return memory budget for a resource type.
Definition: ResourceCache.cpp:765
Vector3 GetDesiredVelocity() const
Return the agent's desired velocity.
Definition: CrowdAgent.cpp:479
void ClearParameterSource(ShaderParameterGroup group)
Clear remembered shader parameter source group.
Definition: OGLGraphics.cpp:1472
TileMapLayerType2D GetType() const
Return type.
Definition: TmxFile2D.h:48
Two-dimensional bounding rectangle.
Definition: Rect.h:31
bool filtered_
Filtering flag.
Definition: RenderPath.h:92
IntVector2 ConvertSystemToUI(const IntVector2 &systemPos) const
Convert system mouse position (or offset) to scaled UI position (or offset).
Definition: UI.cpp:852
Rendering path command.
Definition: RenderPath.h:100
const Vector3 & GetNetPositionAttr() const
Return network position attribute.
Definition: Node.cpp:1512
float targetWeight_
Animation target weight.
Definition: AnimationController.h:62
static void RegisterObject(Context *context)
Register object factory.
Definition: Texture2DArray.cpp:61
bool IsCompressed() const
Return whether is compressed.
Definition: Sound.h:106
TmxFile2D(Context *context)
Construct.
Definition: TmxFile2D.cpp:376
void ClearAll()
Clear all bits.
Definition: ReplicationState.h:92
void SetResizePopup(bool enable)
Set whether popup should be automatically resized to match the dropdown button width.
Definition: DropDownList.cpp:193
T * GetValuePtr()
Return pointer to value of the specified type. Return null pointer if type does not match.
Definition: Variant.h:1551
float GetAnimationLodBias() const
Return animation Lod bias.
Definition: ParticleEffect.h:248
float rowHeight_
Row height.
Definition: Text.h:251
bool GetHardwareShadowSupport() const
Return whether shadow map depth compare is done in hardware.
Definition: Graphics.h:429
String & AppendWithFormat(const char *formatString,...)
Append to string using formatting.
Definition: Str.cpp:1078
void AddEventHandler(StringHash eventType, const String &handlerName) override
Add a scripted event handler.
Definition: ScriptFile.cpp:190
bool threadedUpdate_
Threaded update flag.
Definition: Scene.h:338
CollisionEventMode
Rigid body collision event signaling mode.
Definition: RigidBody.h:44
void LoadPropertySet(const XMLElement &element)
Load property set.
Definition: TmxFile2D.cpp:80
bool Stop(const String &name, float fadeOutTime=0.0f)
Stop an animation. Zero fadetime is instant. Return true on success.
Definition: AnimationController.cpp:208
bool error_
Error flag for raw messages.
Definition: Log.h:69
Scene * scene_
Scene to use.
Definition: View.h:316
@ DD_DISABLED
Drag and drop disabled.
Definition: UIElement.h:107
Vector< Bone > bones_
Bones used for skinned decals.
Definition: DecalSet.h:227
ListView * GetListView() const
Return listview element.
Definition: DropDownList.h:85
AnimatedModel * GetModel() const
Return animated model this state belongs to (model mode).
Definition: AnimationState.cpp:374
static unsigned GetRGFloat32Format()
Return the API-specific RG 32-bit float texture format.
Definition: OGLGraphics.cpp:2634
float GetDampingRatio() const
Return damping ratio.
Definition: ConstraintWeld2D.h:57
unsigned lightMask_
Light mask.
Definition: Terrain.h:303
bool IsObject() const
Check is object.
Definition: JSONValue.h:189
unsigned size_
File size.
Definition: LuaFile.h:58
bool sendFinishedEvent_
Ready to send effect finish event flag.
Definition: ParticleEmitter.h:152
void BeginThreadedUpdate()
Begin a threaded update. During threaded update components can choose to delay dirty processing.
Definition: Scene.cpp:812
bool animated_
Animation enable flag.
Definition: Skeleton.h:74
unsigned checksum_
Scene source file checksum.
Definition: Scene.h:322
Hash map node const iterator.
Definition: HashMap.h:156
void SetNumTriggers(unsigned num)
Resize trigger point vector.
Definition: Animation.cpp:369
const String & GetOutputName(unsigned index) const
Return output rendertarget name.
Definition: RenderPath.cpp:299
bool Empty() const
Return whether vector is empty.
Definition: Vector.h:537
CollisionCircle2D(Context *context)
Construct.
Definition: CollisionCircle2D.cpp:37
float GetSourceHeight(int x, int z) const
Return a source terrain height value, clamping to edges. The source data is used for smoothing.
Definition: Terrain.cpp:1307
void SetVSMMultiSample(int multiSample)
Set VSM shadow map multisampling level. Default 1 (no multisampling).
Definition: Renderer.cpp:425
void SetMaxParticleSize(const Vector2 &size)
Set particle maximum size.
Definition: ParticleEffect.cpp:535
float width_
Width of trail.
Definition: RibbonTrail.h:219
unsigned readBufferOffset_
Read buffer position.
Definition: File.h:135
void SetCastShadows(bool enable)
Set shadowcaster flag for patches.
Definition: Terrain.cpp:476
int GetMaxOccluderTriangles() const
Return maximum number of occluder triangles.
Definition: Renderer.h:322
Color GetEffectiveColor() const
Return effective color, multiplied by brightness and affected by temperature when "use physical value...
Definition: Light.cpp:439
T AbsMod(T x, T y)
Return always positive remainder of X/Y.
Definition: MathDefs.h:178
bool HasPendingData() const
Return whether has pending data assigned while graphics context was lost.
Definition: GPUObject.h:69
bool GetBool() const
Return boolean.
Definition: PListFile.cpp:197
SharedArrayPtr< unsigned char > shadowData_
Shadow data.
Definition: IndexBuffer.h:99
void Close()
Close the window.
Definition: OGLGraphics.cpp:548
Definition: IKEffector.h:36
T * Last() const
Return last element, or null if empty.
Definition: LinkedList.h:172
void SetUpperAngle(float upperAngle)
Set upper angle.
Definition: ConstraintRevolute2D.cpp:101
SharedPtr< Texture > backupTexture_
Backup texture.
Definition: Texture.h:247
IntVector2 size_
Current size.
Definition: AreaAllocator.h:64
static const Vector2 ONE
(1,1) vector.
Definition: Vector2.h:389
RefCount()
Construct.
Definition: RefCounted.h:38
int textureAnisotropy_
Texture anisotropy level.
Definition: Renderer.h:538
void RemoveAllChildren()
Remove all child scene nodes.
Definition: Node.cpp:881
int maxNonThreadedWorkMs_
Maximum milliseconds per frame to spend on low-priority work, when there are no worker threads.
Definition: WorkQueue.h:152
Matrix3x4(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23) noexcept
Construct from values.
Definition: Matrix3x4.h:107
float w_
W coordinate.
Definition: Vector4.h:231
virtual void Release()
Unconditionally release the GPU resource.
Definition: GPUObject.cpp:64
Static model component.
Definition: StaticModel.h:42
bool IsCustom() const
Return true when the variant stores custom type.
Definition: Variant.h:1342
Typed resource reference.
Definition: Variant.h:89
float animationLodBias_
Animation LOD bias.
Definition: AnimatedModel.h:237
unsigned ReadNetID()
Read a 24-bit network object ID.
Definition: Deserializer.cpp:453
void SetAmbientColor(const Color &color)
Set ambient color.
Definition: Zone.cpp:106
IntVector2 position_
Position in screen coordinates.
Definition: Input.h:65
bool GetSerializeParticles() const
Return whether particles are to be serialized.
Definition: ParticleEmitter.h:100
HashMap< const char *, asITypeInfo * > objectTypes_
Search cache for inbuilt object types.
Definition: Script.h:139
unsigned lastFrame_
Last frame counter for knowing when to erase the custom world transforms of previous frame.
Definition: Skybox.h:55
VectorBuffer attrBuffer_
Attribute buffer for network replication.
Definition: BillboardSet.h:209
int Height() const
Return height.
Definition: Rect.h:406
void HandleConsoleCommand(StringHash eventType, VariantMap &eventData)
Handle a console command event.
Definition: FileSystem.cpp:927
Mouse cursor UI element.
Definition: Cursor.h:94
void UnregisterVar(const String &name)
Unregister a node user variable hash reverse mapping.
Definition: Scene.cpp:696
void Pop()
Remove the last element.
Definition: Vector.h:860
Controls controls_
Current controls.
Definition: Connection.h:250
BoundingBox(const Polyhedron &poly)
Construct from a polyhedron.
Definition: BoundingBox.h:106
ShaderType type_
Shader type.
Definition: ShaderVariation.h:158
Script array class.
Definition: Addons.h:46
SharedPtr< RenderSurface > renderSurfaces_[MAX_CUBEMAP_FACES]
Render surfaces.
Definition: TextureCube.h:85
VariantType
Variant's supported types.
Definition: Variant.h:41
void SetTexture(Texture *texture)
Set texture.
Definition: Sprite.cpp:194
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionShape2D.cpp:54
Vector2(float x, float y) noexcept
Construct from coordinates.
Definition: Vector2.h:196
bool SetDefaultWindowModes(int width, int height, const ScreenModeParams ¶ms)
Set default window modes. Return true if successful.
Definition: Graphics.cpp:118
void SetMinFps(int fps)
Set minimum frames per second. If FPS goes lower than this, time will appear to slow down.
Definition: Engine.cpp:563
float GetMapWidth() const
Return map width.
Definition: TileMapDefs2D.cpp:35
void SetTargetNode(Node *targetNode)
The position of the target node provides the target position of the effector node.
Definition: IKEffector.cpp:84
String stringId_
Localization string id storage. Used when autoLocalizable flag is set.
Definition: Text.h:267
Mutex octreeMutex_
Mutex for octree reinsertions.
Definition: Octree.h:212
ListNodeBase * prev_
Previous node.
Definition: ListBase.h:48
unsigned GetCollisionLayer() const
Return collision layer.
Definition: RigidBody.h:220
PODVector< OcclusionBatch > batches_
Submitted render jobs.
Definition: OcclusionBuffer.h:187
Named pipe for interprocess communication.
Definition: NamedPipe.h:37
Rect(const Vector4 &vector) noexcept
Construct from a Vector4.
Definition: Rect.h:56
void QuantizeDirLightShadowCamera(Camera *shadowCamera, Light *light, const IntRect &shadowViewport, const BoundingBox &viewBox)
Quantize a directional light shadow camera view to eliminate swimming.
Definition: View.cpp:2729
BoundingBox shadowCasterBox_[MAX_LIGHT_SPLITS]
Combined bounding box of shadow casters in light projection space. Only used for focused spot lights.
Definition: View.h:70
virtual void UpdateSourceBatches()=0
Update source batches.
bool occludee_
Occludee flag.
Definition: Drawable.h:343
const HashMap< Pair< unsigned char, unsigned char >, unsigned > * vertexAttributes_
Current mapping of vertex attribute locations by semantic. The map is owned by the shader program,...
Definition: OGLGraphicsImpl.h:124
float constantBias_
Constant bias.
Definition: Light.h:73
bool GetResizePopup() const
Return whether popup should be automatically resized.
Definition: DropDownList.h:94
unsigned GetMaxLayers() const
Return the maximum number of layers permitted to build.
Definition: DynamicNavigationMesh.h:93
bool HasAttribute(const String &name) const
Return whether has an attribute.
Definition: XMLElement.cpp:666
Vector< SharedPtr< TileMapObject2D > > objects_
Objects.
Definition: TmxFile2D.h:126
void SetCursorShape(WindowDragMode mode, Cursor *cursor) const
Set cursor shape based on drag mode.
Definition: Window.cpp:369
SharedArrayPtr< float > sourceHeightData_
Source height data for smoothing.
Definition: Terrain.h:251
void MarkTreeNeedsRebuild()
Indicates that the tree structure has changed in some way and needs updating (nodes added or removed,...
Definition: IKSolver.cpp:495
ConstIterator & operator++()
Preincrement the pointer.
Definition: HashSet.h:138
bool operator<(const WeakArrayPtr< T > &rhs) const
Test for less than with another weak array pointer.
Definition: ArrayPtr.h:340
static const Vector2 RIGHT
(1,0) vector.
Definition: Vector2.h:383
const IntVector2 & GetEffectShadowOffset() const
Return effect shadow offset.
Definition: Text.h:160
bool BeginLoadXML(Deserializer &source)
Helper function for loading XML files.
Definition: Material.cpp:272
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: AnimationController.cpp:839
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: ParticleEmitter2D.cpp:75
HorizontalAlignment GetHorizontalAlignment() const
Return horizontal alignment. If pivot has been adjusted to a custom horizontal setting,...
Definition: UIElement.cpp:1495
Vector3 GetContactPosition(int wheel) const
Get wheel contact position.
Definition: RaycastVehicle.cpp:529
AnimationChannelFlags channelMask_
Bitmask of included data (position, rotation, scale).
Definition: Animation.h:96
Octree(Context *context)
Construct.
Definition: Octree.cpp:311
void SetVisible(bool enable)
Set whether is visible. Visibility propagates to child elements.
Definition: UIElement.cpp:957
void SetRotation(float angle)
Set rotation angle.
Definition: Sprite.cpp:185
unsigned GetNumChildren(bool recursive=false) const
Return number of child elements.
Definition: UIElement.cpp:1617
String textureNames_[MAX_TEXTURE_UNITS]
Textures.
Definition: RenderPath.h:158
unsigned GetVertexCount() const
Return vertex count.
Definition: CollisionPolygon2D.h:51
Vector3 halfSize_
World bounding box half size.
Definition: Octree.h:146
StringHash psExtraDefinesHash_
Hash for pixel shader extra defines.
Definition: Batch.h:273
void CreateBody()
Create body.
Definition: RigidBody2D.cpp:365
~WString()
Destruct.
Definition: Str.cpp:1275
IntVector2 GetSize() const
Return window size in pixels.
Definition: Graphics.h:357
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: Texture3D.h:75
Rect Projected(const Matrix4 &projection) const
Return projected by a 4x4 projection matrix.
Definition: Frustum.cpp:209
bool zoneDirty_
Zone inconclusive or dirtied flag.
Definition: Drawable.h:347
Static sprite component.
Definition: StaticSprite2D.h:33
void SetGeometryDataAttr(const PODVector< unsigned char > &value)
Set geometry data attribute.
Definition: CustomGeometry.cpp:734
BoundingBox GetBoundingBox() const
Get the bounding box of this navigation area, in local space.
Definition: NavArea.h:53
ResourceRef(StringHash type, const String &name)
Construct with type and resource name.
Definition: Variant.h:101
const BoundingBox & GetBoundingBox() const
Return local space bounding box. May not be applicable or properly updated on all drawables.
Definition: Drawable.h:177
float erp_
Error reduction parameter.
Definition: Constraint.h:195
bool operator!=(const Vector< T > &rhs) const
Test for inequality with another vector.
Definition: Vector.h:177
void FromAngleAxis(float angle, const Vector3 &axis)
Define from an angle (in degrees) and axis.
Definition: Quaternion.cpp:36
Technique(Context *context)
Construct.
Definition: Technique.cpp:240
void HandleTextChanged(StringHash eventType, VariantMap &eventData)
Handle text change in the line edit.
Definition: Console.cpp:361
void StopLockless()
Stop sound without locking the audio mutex. Called internally.
Definition: SoundSource.cpp:576
void SetShaderParameterAnimationSpeed(const String &name, float speed)
Set shader parameter animation speed.
Definition: Material.cpp:1025
void SetFinishParticleSizeVariance(float finishParticleSizeVariance)
Set finish particle size variance.
Definition: ParticleEffect2D.cpp:404
Color or depth-stencil surface that can be rendered into.
Definition: RenderSurface.h:34
Animation * animation_
Current animation.
Definition: SpriterInstance2D.h:99
unsigned GetTimerPeriod() const
Return current low-resolution timer period in milliseconds.
Definition: Timer.h:102
StringHash GetAnimationNameHash() const
Return animation name hash.
Definition: Animation.h:163
static const Variant EMPTY
Empty variant.
Definition: Variant.h:1381
unsigned GetControlledIdAttr() const
Get Controlled Node ID attribute.
Definition: SplinePath.h:111
bool IsChildOf(UIElement *element) const
Return whether is a direct or indirect child of specified element.
Definition: UIElement.cpp:1547
void UpdateEventSubscription()
Update whether should be subscribed to scene or global update events for shader parameter animation.
Definition: Material.cpp:1322
unsigned GetDragButtonCount() const
Return the number of buttons dragging this element.
Definition: UIElement.h:607
WeakPtr< Zone > lastAmbientStartZone_
Last zone used for ambient gradient start color.
Definition: Zone.h:168
VariantMap smoothingData_
Preallocated event data map for smoothing update events.
Definition: Scene.h:312
void SetTargetPosition(const Vector3 &position)
Submit a new target position request for this agent.
Definition: CrowdAgent.cpp:326
void PrepareNetworkUpdate()
Prepare network update by comparing attributes and marking replication states dirty as necessary.
Definition: Scene.cpp:1091
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: TerrainPatch.cpp:209
T * Get() const
Return the raw pointer.
Definition: Ptr.h:649
bool IsEmpty() const
Return whether has empty draw range.
Definition: Geometry.h:113
Rect drawRect_
Draw rectangle.
Definition: StaticSprite2D.h:164
float delay_
Delay time remaining until execution.
Definition: ScriptEventListener.h:42
3D text component.
Definition: Text3D.h:36
bool colorWrite_
Color write enable.
Definition: Graphics.h:807
Doubly-linked list template class.
Definition: List.h:32
void OnSceneSet(Scene *scene) override
Handle scene being assigned, identify our DynamicNavigationMesh.
Definition: Obstacle.cpp:95
void SetMaxRadius(float maxRadius)
Set max radius.
Definition: ParticleEffect2D.cpp:419
TextureFilterMode filterMode_
Filtering mode.
Definition: Texture.h:225
const KeyValue * operator->() const
Point to the pair.
Definition: HashMap.h:211
~CollisionEdge2D() override
Destruct.
float value_
ProgressBar current value.
Definition: ProgressBar.h:104
constexpr RandomAccessConstIterator()
Construct.
Definition: Iter.h:130
const float * Data() const
Return float data.
Definition: Color.h:142
Camera component.
Definition: Camera.h:50
WeakPtr< Renderer2D > renderer_
Renderer2D.
Definition: Drawable2D.h:120
const StringVector & GetTags() const
Return all tags.
Definition: UIElement.h:595
float maxDistance_
Maximum ray distance.
Definition: OctreeQuery.h:252
dtCrowd * crowd_
Internal Detour crowd object.
Definition: CrowdManager.h:183
void OnDeviceLost() override
Mark the buffer destroyed on graphics context destruction. May be a no-op depending on the API.
Definition: OGLVertexBuffer.cpp:35
float fontSize_
Font size.
Definition: Text.h:223
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: RibbonTrail.cpp:430
bool HasRegisteredPaths() const
Return whether paths have been registered.
Definition: FileSystem.h:86
void SetMemoryBudget(StringHash type, unsigned long long budget)
Set memory budget for a specific resource type, default 0 is unlimited.
Definition: ResourceCache.cpp:436
bool SetIndexBuffers(const Vector< SharedPtr< IndexBuffer > > &buffers)
Set index buffers.
Definition: Model.cpp:522
RefCount * RefCountPtr()
Return pointer to the reference count structure.
Definition: RefCounted.h:82
unsigned Hash(const T &key) const
Compute a hash based on the key and the bucket size.
Definition: HashSet.h:640
void MixMonoToStereoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix mono sample to stereo buffer interpolated.
Definition: SoundSource.cpp:832
asIScriptObject * object_
Script object that the handler method belongs to. Null for procedural event handling.
Definition: ScriptFile.h:182
ResourceRef GetModelAttr() const
Return model attribute.
Definition: StaticModel.cpp:386
AnimationState(AnimatedModel *model, Animation *animation)
Construct with animated model and animation pointers.
Definition: AnimationState.cpp:46
void ReloadResourceWithDependencies(const String &fileName)
Reload a resource based on filename. Causes also reload of dependent resources if necessary.
Definition: ResourceCache.cpp:398
void Insert(unsigned pos, T &&value)
Insert an element at position.
Definition: Vector.h:291
bool GetInterpolation() const
Return whether output is interpolated.
Definition: Audio.h:78
void SetAutoUpdate(bool enable)
Set render target auto update mode. Default is true.
Definition: View3D.cpp:119
Vector3 ClosestPoint(const Ray &ray) const
Return closest point to another ray.
Definition: Ray.cpp:34
void SetMaxIndices(unsigned num)
Set maximum number of decal vertex indices.
Definition: DecalSet.cpp:272
unsigned GetNumLayers() const
Return number of layers.
Definition: TmxFile2D.h:196
Sprite2D * GetSprite() const
Return sprite.
Definition: AnimationSet2D.cpp:207
void SetDynamicInstancing(bool enable)
Set dynamic instancing on/off. When on (default), drawables using the same static-type geometry and m...
Definition: Renderer.cpp:459
void SetWheelAxle(int wheel, Vector3 axle)
Set wheel axle vector.
Definition: RaycastVehicle.cpp:635
void SetMaxLodLevelsAttr(unsigned value)
Set max LOD levels attribute.
Definition: Terrain.cpp:816
void SetMinSize(const IntVector2 &minSize)
Set minimum size.
Definition: UIElement.cpp:603
T Tan(T angle)
Return tangent of an angle in degrees.
Definition: MathDefs.h:145
bool GetButtonDown(unsigned index) const
Check if a button is held down.
Definition: Input.h:97
void FromRotationTo(const Vector3 &start, const Vector3 &end)
Define from the rotation difference between two direction vectors.
Definition: Quaternion.cpp:68
bool autoExit_
Auto-exit flag.
Definition: Engine.h:150
unsigned GetNumCommands() const
Return number of commands.
Definition: RenderPath.h:239
Camera * shadowCameras_[MAX_LIGHT_SPLITS]
Shadow cameras.
Definition: View.h:64
float GetWheelMaxSuspensionForce(int wheel) const
Get wheel max suspension force.
Definition: RaycastVehicle.cpp:473
float x_
X coordinate.
Definition: Quaternion.h:463
bool RemoveWorkItem(SharedPtr< WorkItem > item)
Remove a work item before it has started executing. Return true if successfully removed.
Definition: WorkQueue.cpp:173
void SetOwner(Connection *owner)
Set owner connection for networking.
Definition: Node.cpp:738
virtual btCollisionShape * UpdateDerivedShape(int shapeType, const Vector3 &newWorldScale)
Definition: CollisionShape.cpp:1194
void UpdateAmbientGradient()
Recalculate the ambient gradient colors from neighbor zones. Not safe to call from worker threads due...
Definition: Zone.cpp:252
static void RegisterObject(Context *context)
Register object factory. StaticModel must be registered first.
Definition: StaticModelGroup.cpp:58
void SetUseClipping(bool enable)
Set whether to use a custom clip plane.
Definition: Camera.cpp:233
void SetOrientation(Orientation orientation)
Set orientation type.
Definition: Slider.cpp:166
void PushDouble(double value)
Push double to stack.
Definition: LuaFunction.cpp:123
const ColorFrame * GetColorFrame(unsigned index) const
Return a color animation frame, or null if outside range.
Definition: ParticleEffect.cpp:780
Animated model component.
Definition: AnimatedModel.h:36
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: CustomGeometry.cpp:61
bool initialized_
Initialized flag.
Definition: UI.h:393
const Color & GetFinishColorVariance() const
Return finish color variance.
Definition: ParticleEffect2D.h:185
bool Load(Deserializer &source) override
Load from binary data. Return true if successful.
Definition: AnimatedModel.cpp:128
void SetLightType(LightType type)
Set light type.
Definition: Light.cpp:271
int maxParticles_
Max particles.
Definition: ParticleEffect2D.h:294
Matrix4 GetGPUProjection() const
Return projection matrix converted to API-specific format for use as a shader parameter.
Definition: Camera.cpp:448
T * Get() const
Return raw pointer. If expired, return null.
Definition: Ptr.h:400
float GetAttributeAnimationTime(const String &name) const
Return attribute animation time position.
Definition: Animatable.cpp:446
float GetFogStart() const
Return fog start distance.
Definition: Zone.h:88
float ReadFloat(const XMLElement &element, const String &name) const
Read float.
Definition: ParticleEffect2D.cpp:525
virtual bool IsWithinScissor(const IntRect ¤tScissor)
Return whether is visible and inside a scissor rectangle and should be rendered.
Definition: UIElement.cpp:385
Base class for animatable object, an animatable object can be set animation on it's attributes,...
Definition: Animatable.h:63
const String & GetConnectionString() const
Return database connection string. The connection string for SQLite3 is using the URI format describe...
Definition: ODBCConnection.h:50
int WeakRefs() const
Return the array's weak reference count, or 0 if the pointer is null.
Definition: ArrayPtr.h:165
void HandleTargetRotation(StringHash eventType, VariantMap &eventData)
Handle SmoothedTransform target rotation update.
Definition: RigidBody.cpp:1045
float GetERP() const
Return constraint error reduction parameter.
Definition: Constraint.h:137
void AddRef()
Add a reference to the array pointed to.
Definition: ArrayPtr.h:178
List< Decal > decals_
Decals.
Definition: DecalSet.h:225
void ResetShadowMaps()
Remove all shadow maps. Called when global shadow map resolution or format is changed.
Definition: Renderer.cpp:1898
ParticleEffect(Context *context)
Construct.
Definition: ParticleEffect.cpp:59
float GetTangentialAcceleration() const
Return tangential acceleration.
Definition: ParticleEffect2D.h:167
bool GetButtonPress(unsigned index) const
Check if a button has been pressed on this frame.
Definition: Input.h:100
Octree * root_
Octree root.
Definition: Octree.h:154
float GetRatio() const
Return ratio.
Definition: ConstraintGear2D.h:57
void ApplyForce(const Vector3 &force)
Apply force to center of mass.
Definition: RigidBody.cpp:516
WeakPtr< Shader > owner_
Shader this variation belongs to.
Definition: ShaderVariation.h:156
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintRope2D.cpp:96
void Reset(T *ptr=nullptr)
Reset.
Definition: Ptr.h:652
Convex constructed of 6 planes.
Definition: Frustum.h:51
AnimationBlendMode GetBlendMode(const String &name) const
Return animation blending mode.
Definition: AnimationController.cpp:519
PODVector< IntVector2 > tileQueue_
Queue of tiles to be built.
Definition: DynamicNavigationMesh.h:148
void SetNumGeometries(unsigned num)
Set number of geometries.
Definition: CustomGeometry.cpp:501
const std::type_info & GetTypeInfo() const
Get the type info.
Definition: Variant.h:184
unsigned defaultTextureAnisotropy_
Default texture max. anisotropy level.
Definition: Graphics.h:801
Vector3 position_
Offset position.
Definition: CollisionShape.h:302
void HandleNavigationTileAdded(StringHash eventType, VariantMap &eventData)
Handle navigation mesh tile added.
Definition: CrowdAgent.cpp:650
bool GetColorWrite() const
Return whether color write is enabled.
Definition: Graphics.h:507
@ JSONNT_FLOAT_DOUBLE
Float or double.
Definition: JSONValue.h:59
void AddRenderTarget(const RenderTargetInfo &info)
Add a rendertarget.
Definition: RenderPath.cpp:435
~ConstraintRevolute2D() override
Destruct.
static unsigned GetRGBAFormat()
Return the API-specific RGBA texture format.
Definition: OGLGraphics.cpp:2584
void SetDefaultStyle(XMLFile *style)
Set UI elements' style from an XML file.
Definition: DebugHud.cpp:208
static String GetTimeStamp()
Get a date/time stamp as a string.
Definition: Timer.cpp:172
unsigned viewMask_
Drawable layers to include.
Definition: OctreeQuery.h:250
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: Node.cpp:175
String(const T &value)
Construct from a convertible value.
Definition: Str.h:155
SharedPtr< XMLFile > xmlFile_
XML file for XML mode.
Definition: Scene.h:62
CollisionGeometryDataCache gimpactTrimeshCache_
Cache for GImpact trimesh geometry data by model and LOD level.
Definition: PhysicsWorld.h:332
String path_
The path being watched.
Definition: FileWatcher.h:71
void DrawSolidCircle(const b2Vec2 ¢er, float32 radius, const b2Vec2 &axis, const b2Color &color) override
Draw a solid circle.
Definition: PhysicsWorld2D.cpp:238
unsigned GetNumViews() const
Return number of views rendered.
Definition: Renderer.h:343
bool GetUpdateNodePosition() const
Return true when the node's position should be updated by the CrowdManager.
Definition: CrowdAgent.h:145
T Atan2(T y, T x)
Return arc tangent of y/x in degrees.
Definition: MathDefs.h:157
void SetKnot(const Variant &knot, unsigned index)
Set the value of an existing knot.
Definition: Spline.cpp:104
WString()
Construct empty.
Definition: Str.cpp:1237
void SeekInternal(unsigned newPosition)
Seek in file internally using either C standard IO functions or SDL RWops for Android asset files.
Definition: File.cpp:538
@ FM_FOCUSABLE_DEFOCUSABLE
Is focusable and also defocusable by pressing ESC.
Definition: UIElement.h:81
SharedPtr< ObjectAnimation > objectAnimation_
Animation.
Definition: Animatable.h:151
static struct PhysicsWorldConfig config
Overrides of the internal configuration.
Definition: PhysicsWorld.h:287
bool Define(RenderSurface *renderTarget, Viewport *viewport)
Define with rendertarget and viewport. Return true if successful.
Definition: View.cpp:293
void SetRawVertexData(const SharedArrayPtr< unsigned char > &data, const PODVector< VertexElement > &elements)
Override raw vertex data to be returned for CPU-side operations.
Definition: Geometry.cpp:156
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ObjectAnimation.cpp:58
Matrix3x4 reflectionMatrix_
Reflection matrix calculated from the plane.
Definition: Camera.h:274
View(Context *context)
Construct.
Definition: View.cpp:282
bool emitting_
Currently emitting flag.
Definition: ParticleEmitter.h:146
const PListValueMap & GetValueMap() const
Return value map.
Definition: PListFile.cpp:242
void ReleaseShape()
Release the collision shape.
Definition: CollisionShape.cpp:889
Vector3 EulerAngles() const
Return Euler angles in degrees.
Definition: Quaternion.cpp:177
NavigationPushiness GetNavigationPushiness() const
Get the agent's navigation pushiness.
Definition: CrowdAgent.h:172
LineEdit * GetPathEdit() const
Return path editor.
Definition: FileSelector.h:93
Deserializer()
Construct with zero size.
Definition: Deserializer.cpp:34
void UpdateMaterial()
Update material.
Definition: ParticleEmitter2D.cpp:269
void ClearInt(unsigned uintColor)
Clear the image with an integer color. R component is in the 8 lowest bits.
Definition: Image.cpp:1220
~RigidBody() override
Destruct. Free the rigid body and geometries.
Definition: RigidBody.cpp:86
bool GetEffectRoundStroke() const
Return effect round stroke.
Definition: Text3D.cpp:443
const String & GetEntity() const
Return entity name.
Definition: AnimatedSprite2D.h:86
void ProcessIdentity(int msgID, MemoryBuffer &msg)
Process an Identity message from the client. Called by Network.
Definition: Connection.cpp:937
unsigned boundFBO_
Currently bound frame buffer object.
Definition: OGLGraphicsImpl.h:126
Vector3 position_
Position.
Definition: Node.h:689
Vector3 gravityOverride_
Gravity override vector.
Definition: RigidBody.h:281
WeakArrayPtr(const SharedArrayPtr< T > &rhs)
Construct from a shared array pointer.
Definition: ArrayPtr.h:250
const String & GetType() const
Return type.
Definition: TileMapDefs2D.h:177
StringHash(unsigned value) noexcept
Construct with an initial value.
Definition: StringHash.h:46
void AddEventHandler(Object *sender, const StringHash &eventType, LuaFunction *function)
Add a scripted event handler.
Definition: LuaScriptEventInvoker.cpp:47
bool Exists(const String &fileName) const
Check if a file exists within the package file. This will be case-insensitive on Windows and case-sen...
Definition: PackageFile.cpp:113
Bone * startBone_
Start bone.
Definition: AnimationState.h:165
bool IsFrontWheel(int wheel) const
True if front wheel, otherwise false.
Definition: RaycastVehicle.cpp:678
bool CreateDir(const String &pathName)
Create a directory.
Definition: FileSystem.cpp:330
static const ChannelMask ABGR
Mask for 0xAABBGGRR layout.
Definition: Color.h:49
unsigned GetNumDecals() const
Return number of decals.
Definition: DecalSet.h:149
static void BulkTranspose(float *dest, const float *src, unsigned count)
Bulk transpose matrices.
Definition: Matrix2.h:238
static unsigned GetLuminanceFormat()
Return the API-specific luminance texture format.
Definition: OGLGraphics.cpp:2559
float GetSpeed(const String &name) const
Return animation speed.
Definition: AnimationController.cpp:531
int maxFontTextureSize_
Font texture maximum size.
Definition: UI.h:391
Octree component. Should be added only to the root scene node.
Definition: Octree.h:160
Iterator Erase(const Iterator &start, const Iterator &end)
Erase a range by iterators. Return an iterator to the next element.
Definition: List.h:336
PODVector< Vector3 > offMeshVertices_
Offmesh connection vertices.
Definition: NavBuildData.h:68
~Network() override
Destruct.
Definition: Network.cpp:269
void SetSelectionColor(const Color &color)
Set selection background color. Color with 0 alpha (default) disables.
Definition: UISelectable.cpp:59
UniquePtr< NetworkState > networkState_
Network attribute state.
Definition: Serializable.h:135
unsigned numOcclusionBuffers_
Number of occlusion buffers in use.
Definition: Renderer.h:574
int width_
Width.
Definition: Image.h:65
void UpdateVertexBuffer(const FrameInfo &frame)
Rewrite RibbonTrail vertex buffer.
Definition: RibbonTrail.cpp:523
void DrawBatch(const OcclusionBatch &batch, unsigned threadIndex)
Draw a batch. Called internally.
Definition: OcclusionBuffer.cpp:464
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Drawable.cpp:167
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: ScriptInstance.cpp:549
void SetMaterial(Material *material)
Set material. The material should use a small negative depth bias to avoid Z-fighting.
Definition: DecalSet.cpp:248
float GetElapsedTime() const
Return elapsed time in seconds.
Definition: Scene.h:199
Variant(const IntVector2 &value)
Construct from an IntVector2.
Definition: Variant.h:481
Texture * GetScreenBuffer(int width, int height, unsigned format, int multiSample, bool autoResolve, bool cubemap, bool filtered, bool srgb, unsigned persistentKey=0)
Allocate a rendertarget or depth-stencil texture for deferred rendering or postprocessing....
Definition: Renderer.cpp:996
int shadowMapSize_
Shadow map resolution.
Definition: Renderer.h:546
float Element(unsigned i, unsigned j) const
Return matrix element.
Definition: Matrix4.h:642
HashMap< unsigned, NodeReplicationState > nodeStates_
Nodes by ID.
Definition: ReplicationState.h:178
float GetDistanceSquared(const Vector3 &worldPos) const
Return squared distance to position. In orthographic mode uses only Z coordinate.
Definition: Camera.cpp:498
HashMap< Object *, HashMap< StringHash, SharedPtr< EventReceiverGroup > > > specificEventReceivers_
Event receivers for specific senders' events.
Definition: Context.h:236
const String & GetHistoryRow(unsigned index) const
Return history row at index.
Definition: Console.cpp:305
unsigned selectionAttr_
Selected item index attribute.
Definition: DropDownList.h:121
const String & GetText() const
Return text.
Definition: Text3D.cpp:398
int GetHeight() const
Return height.
Definition: Texture.h:85
unsigned GetUInt(const String &name) const
Return an unsigned integer attribute, or zero if missing.
Definition: XMLElement.cpp:802
void HandleConsoleCommand(StringHash eventType, VariantMap &eventData)
Handle a console command event.
Definition: Script.cpp:370
HashSet(const HashSet< T > &set)
Construct from another hash set.
Definition: HashSet.h:183
String loadTextureName_
Texture name used while loading.
Definition: SpriteSheet2D.h:94
bool IsLocked() const
Return whether is currently locked.
Definition: VertexBuffer.h:73
T ToRadians(const T degrees)
Convert degrees to radians.
Definition: MathDefs.h:99
Vector< SharedArrayPtr< DepthValue > > mipBuffers_
Reduced size depth buffers.
Definition: OcclusionBuffer.h:185
void RegisterVar(const String &name)
Register a node user variable hash reverse mapping (for editing).
Definition: Scene.cpp:691
DecalVertex(const Vector3 &position, const Vector3 &normal, const float *blendWeights, const unsigned char *blendIndices)
Construct with position, normal and skinning information.
Definition: DecalSet.h:50
void HandleLogMessage(StringHash eventType, VariantMap &eventData)
Handle a log message.
Definition: Console.cpp:530
void EndFrame()
End the profiling frame. Called by HandleEndFrame().
Definition: Profiler.cpp:58
float GetMaxAccel() const
Get the agent's max acceleration.
Definition: CrowdAgent.h:151
float maxRadius_
Max radius.
Definition: ParticleEffect2D.h:308
void PushLuaTable(const String &tableName)
Push Lua table to stack. When the specified table is not found then a nil is pushed instead.
Definition: LuaFunction.h:96
bool WriteResourceRefList(const ResourceRefList &value)
Write a resource reference list.
Definition: Serializer.cpp:225
Component * owner_
Parent component.
Definition: SpriterInstance2D.h:93
XMLElement FirstResult()
Definition: XMLElement.cpp:1046
float GetInAirRPM() const
Get revolution per minute value for when wheel doesn't touch ground.
Definition: RaycastVehicle.cpp:697
Color borderColor_
Border color.
Definition: Texture.h:233
Matrix3x4() noexcept
Construct an identity matrix.
Definition: Matrix3x4.h:39
Node * Down() const
Return next node in the bucket.
Definition: HashSet.h:60
XML document resource.
Definition: XMLFile.h:41
bool Save(Serializer &dest, int pointSize, const String &indentation="\t")
Save as a new bitmap font type in XML format. Return true if successful.
Definition: FontFaceBitmap.cpp:265
Drawable component that creates a tail.
Definition: RibbonTrail.h:65
Vector2 hotSpot_
Hot spot.
Definition: Sprite2D.h:101
Vector base class.
Definition: VectorBase.h:41
StringVector * GetStringVectorPtr()
Return a pointer to a modifiable string vector or null on type mismatch.
Definition: Variant.h:1357
void SetConstraintType(ConstraintType type)
Set constraint type and recreate the constraint.
Definition: Constraint.cpp:149
Vector2 position_
Hit worldspace position.
Definition: PhysicsWorld2D.h:47
unsigned long long GetTotalMemoryUse() const
Return total memory use for all resources.
Definition: ResourceCache.cpp:777
ConstraintType constraintType_
Constraint type.
Definition: Constraint.h:179
const Quaternion & GetRotation() const
Return the observer rotation sent by the client for interest management.
Definition: Connection.h:192
float GetLodHeight(int x, int z, unsigned lodLevel) const
Return interpolated height for a specific LOD level.
Definition: Terrain.cpp:1317
@ O_ISOMETRIC
Isometric.
Definition: TileMapDefs2D.h:41
ShadowQuality shadowQuality_
Shadow quality.
Definition: Renderer.h:548
void SetUpdateEnabled(bool enable)
Enable or disable automatic physics simulation during scene update. Enabled by default.
Definition: PhysicsWorld2D.cpp:342
RenderSurface * colorAttachments_[MAX_RENDERTARGETS]
Bound color attachment textures.
Definition: OGLGraphicsImpl.h:89
const TechniqueEntry & GetTechniqueEntry(unsigned index) const
Return technique entry by index.
Definition: Material.cpp:1181
AnimationState * AddAnimationState(Animation *animation)
Add an animation state either to AnimatedModel or as a node animation.
Definition: AnimationController.cpp:847
unsigned GetMSec(bool reset)
Return elapsed milliseconds and optionally reset.
Definition: Timer.cpp:200
void SetDelayedCallsAttr(const PODVector< unsigned char > &value)
Set delayed method calls attribute.
Definition: ScriptInstance.cpp:445
void SetInternalEdge(bool enable)
Set whether to use Bullet's internal edge utility for trimesh collisions. Disabled by default.
Definition: PhysicsWorld.cpp:351
String SanitateResourceName(const String &name) const
Remove unsupported constructs from the resource name to prevent ambiguity, and normalize absolute fil...
Definition: ResourceCache.cpp:841
float DistanceToPoint(const Vector3 &point) const
Return distance to point.
Definition: BoundingBox.cpp:199
void SetShadowMask(unsigned mask)
Set shadow mask for patches. Is and'ed with light's light mask and zone's shadow mask to see if the o...
Definition: Terrain.cpp:440
b2JointDef * GetJointDef() override
Return Joint def.
Definition: ConstraintPulley2D.cpp:119
void AddKeyFrame(const AnimationKeyFrame &keyFrame)
Add a keyframe at the end.
Definition: Animation.cpp:63
const IntVector2 & GetCheckedOffset() const
Return checked image offset.
Definition: CheckBox.h:62
float GetMaxAgentRadius() const
Get the maximum radius of any agent.
Definition: CrowdManager.h:126
Vector3 ReadPackedVector3(float maxAbsCoord)
Read a Vector3 packed into 3 x 16 bits with the specified maximum absolute range.
Definition: Deserializer.cpp:180
Sound listener component.
Definition: SoundListener.h:31
Vector< VAnimKeyFrame > keyFrames_
Key frames.
Definition: ValueAnimation.h:165
void Normalize()
Normalize to unit length.
Definition: Quaternion.h:313
VertexElement(VertexElementType type, VertexElementSemantic semantic, unsigned char index=0, bool perInstance=false) noexcept
Construct with type, semantic, index and whether is per-instance data.
Definition: GraphicsDefs.h:196
void Compact()
Reallocate so that no extra memory is used.
Definition: Vector.h:461
TextureFilterMode defaultTextureFilterMode_
Default texture filtering mode.
Definition: Graphics.h:799
Vector() noexcept=default
Construct empty.
PListFile(Context *context)
Construct.
Definition: PListFile.cpp:299
FlagSet & operator^=(const Enum value)
Bitwise XOR against Enum value.
Definition: FlagSet.h:104
static int Close(SDL_RWops *context)
Close the object. Only meaningful for files, no-op otherwise.
Definition: RWOpsWrapper.h:91
bool alphaToCoverage_
Alpha-to-coverage enable.
Definition: Graphics.h:805
unsigned numPrimitives_
Number of primitives (3D geometry only).
Definition: Renderer.h:578
WeakPtr< Node > node_
Root scene node (node hierarchy mode).
Definition: AnimationState.h:161
void SetShape(const String &shape)
Set current shape.
Definition: Cursor.cpp:178
~Navigable() override
Destruct.
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Text.cpp:120
void SetWorldScale2D(float x, float y)
Set scale in world space (for Urho2D).
Definition: Node.h:210
float GetRegionMinSize() const
Return region minimum size.
Definition: NavigationMesh.h:219
unsigned subObject_
Drawable specific subobject if applicable.
Definition: OctreeQuery.h:219
float GetRandomVelocity() const
Return random velocity.
Definition: ParticleEffect.cpp:801
Button * GetCloseButton() const
Return the close butoon element.
Definition: Console.h:90
const JSONValue & GetRoot() const
Return root value.
Definition: JSONFile.h:59
bool Equals(const Rect &rhs) const
Test for equality with another rect with epsilon.
Definition: Rect.h:209
void Insert(const Iterator &dest, const T *start, const T *end)
Insert elements.
Definition: List.h:307
static void BulkTranspose(float *dest, const float *src, unsigned count)
Bulk transpose matrices.
Definition: Matrix4.h:695
HashMap< String, Vector< StringHash > > objectCategories_
Object categories.
Definition: Context.h:244
ListNodeBase * ptr_
Node pointer.
Definition: ListBase.h:89
void SetEffectStrokeThickness(int thickness)
Set stroke thickness.
Definition: Text.cpp:394
float hitFraction_
Hit fraction.
Definition: PhysicsWorld.h:75
void ApplyFrameLimit()
Get the timestep for the next frame and sleep for frame limiting if necessary.
Definition: Engine.cpp:722
void RemoveObstacle(Obstacle *, bool silent=false)
Used by Obstacle class to remove itself from the tile cache, if 'silent' an event will not be raised.
Definition: DynamicNavigationMesh.cpp:1123
void SetElapsedTime(float time)
Set elapsed time in seconds. This can be used to prevent inaccuracy in the timer if the scene runs fo...
Definition: Scene.cpp:672
Viewport * GetViewport(unsigned index) const
Return backbuffer viewport by index.
Definition: Renderer.cpp:537
void RotateAround2D(const Vector2 &point, float delta, TransformSpace space=TS_LOCAL)
Rotate around a point in the chosen transform space (for Urho2D).
Definition: Node.h:255
SharedPtr(std::nullptr_t) noexcept
Construct a null shared pointer.
Definition: Ptr.h:46
void ResetForces()
Reset accumulated forces.
Definition: RigidBody.cpp:570
PODVector< Drawable * > geometries_
Geometry objects.
Definition: View.h:98
void SetMaxEmissionRate(float rate)
Set maximum emission rate.
Definition: ParticleEffect.cpp:525
Frustum GetViewSpaceFrustum(const Matrix3x4 &view) const
Return spotlight frustum in the specified view space.
Definition: Light.cpp:465
Singly-linked list template class. Elements must inherit from LinkedListNode.
Definition: LinkedList.h:49
const Vector2 & GetOwnerBodyAnchor() const
Return owner body anchor.
Definition: ConstraintDistance2D.h:55
bool sortChildren_
Sort children according to priority flag.
Definition: UIElement.h:698
VertexElementSemantic
Arbitrary vertex declaration element semantics.
Definition: GraphicsDefs.h:168
unsigned lodLevel_
Current LOD level.
Definition: TerrainPatch.h:140
int minInstances_
Minimum number of instances required in a batch group to render as instanced.
Definition: Renderer.h:558
CrowdAgentState previousAgentState_
Agent's previous agent state used to check for state changes.
Definition: CrowdAgent.h:236
String psSourceCode_
Source code adapted for pixel shader.
Definition: Shader.h:73
int height_
Window height in pixels.
Definition: Graphics.h:727
void Clear()
Clear the vector.
Definition: Vector.h:1027
float elapsedLength_
Elapsed length inside the trail.
Definition: RibbonTrail.h:55
const unsigned char * GetData() const
Return data.
Definition: VectorBuffer.h:62
void SetPlayingAttr(bool value)
Set sound playing attribute.
Definition: SoundSource.cpp:481
void SetDensity(float density)
Set density.
Definition: CollisionShape2D.cpp:133
void RemoveShaderParameter(const String &name)
Remove a shader parameter.
Definition: RenderPath.cpp:247
unsigned viewMask_
View mask of current camera for visibility checking.
Definition: Renderer2D.h:129
bool IsSorted() const
Return whether billboards are sorted.
Definition: BillboardSet.h:122
MouseButtonFlags dragButtons
Which button combo initiated the drag.
Definition: UI.h:233
b2Body * GetBody() const
Return Box2D body.
Definition: RigidBody2D.h:160
int GetOrderInLayer() const
Return order in layer.
Definition: Drawable2D.h:93
Graphics subsystem. Manages the application window, rendering state and GPU resources.
Definition: Graphics.h:139
Color derivedColor_
Derived color. Only valid when no gradient.
Definition: UIElement.h:801
Entity.
Definition: SpriterData2D.h:103
~ConstraintPulley2D() override
Destruct.
UniquePtr(UniquePtr &&up) noexcept
Move-construct from UniquePtr.
Definition: Ptr.h:592
float radius_
Radius.
Definition: Skeleton.h:78
PODVector< unsigned char > GetScriptNetworkDataAttr() const
Get script network serialization attribute by calling a script function.
Definition: LuaScriptInstance.cpp:484
void MarkForAuxView(unsigned frameNumber)
Mark material for auxiliary view rendering.
Definition: Material.cpp:1176
void SetType(StringHash typeHash)
Initialize the type hash only when type name not known. Called by Node when loading.
Definition: UnknownComponent.cpp:248
CollisionGeometryData * GetGeometryData() const
Return the shared geometry data.
Definition: CollisionShape.h:215
String vsSourceCode_
Source code adapted for vertex shader.
Definition: Shader.h:71
RenderSurface * GetLinkedRenderTarget() const
Return linked color rendertarget.
Definition: RenderSurface.h:90
void SetAnchor(const Vector2 &anchor)
Set anchor.
Definition: ConstraintPrismatic2D.cpp:62
T & Back()
Return last element.
Definition: Vector.h:517
Iterator & operator++()
Preincrement the pointer.
Definition: HashSet.h:76
void SetScriptDataAttr(const PODVector< unsigned char > &data)
Set script file serialization attribute by calling a script function.
Definition: ScriptInstance.cpp:462
2D particle effect resource.
Definition: ParticleEffect2D.h:44
Raycast octree query.
Definition: OctreeQuery.h:223
Material * GetMaterial() const
Return material.
Definition: Text3D.cpp:383
SharedArrayPtr< unsigned char > data_
Pixel data.
Definition: Image.h:234
void MixOutput(void *dest, unsigned samples)
Mix sound sources into the buffer.
Definition: Audio.cpp:266
void SetSkeleton(const Skeleton &skeleton, bool createBones)
Set skeleton.
Definition: AnimatedModel.cpp:694
String sceneFileName_
Scene file to load once all packages (if any) have been downloaded.
Definition: Connection.h:317
void BindFramebuffer(unsigned fbo)
Bind a framebuffer using either extension or core functionality. Used only on OpenGL.
Definition: OGLGraphics.cpp:3277
float GetLowerAngle() const
Return lower angle.
Definition: ConstraintRevolute2D.h:65
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: Text.cpp:469
void ApplyAttributes() override
Perform post-load after deserialization. Acquire the components from the scene nodes.
Definition: RaycastVehicle.cpp:201
void SetUpdateNodePosition(bool unodepos)
Update the node position. When set to false, the node position should be updated by other means (e....
Definition: CrowdAgent.cpp:370
float velocityMax_
Particle velocity maximum.
Definition: ParticleEffect.h:405
bool IsTrigger() const
Return whether this RigidBody is acting as a trigger.
Definition: RigidBody.h:214
Random access iterator.
Definition: Iter.h:31
bool LoadDict(PListValueMap &dict, const XMLElement &dictElem)
Load dictionary.
Definition: PListFile.cpp:341
float shadowFadeDistance_
Shadow fade start distance.
Definition: Light.h:383
Matrix4 Inverse() const
Return inverse.
Definition: Matrix4.cpp:79
float lastTimeStep_
Last scene timestep.
Definition: RibbonTrail.h:231
virtual ~NavBuildData()
Destructor.
Definition: NavBuildData.cpp:40
bool SetVector3(const String &name, const Vector3 &value)
Set a Vector3 attribute.
Definition: XMLElement.cpp:528
float GetAttributeAnimationSpeed(const String &name) const
Return attribute animation speed.
Definition: Animatable.cpp:440
BoundingBox() noexcept
Construct with zero size.
Definition: BoundingBox.h:47
Vector3 previousOffset_
Previous offset to camera for determining whether sorting is necessary.
Definition: BillboardSet.h:205
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: RibbonTrail.cpp:906
unsigned GetTrackIndex(Node *node) const
Return track index with matching bone node, or M_MAX_UNSIGNED if not found.
Definition: AnimationState.cpp:416
void RecreateFixture()
Recreate fixture.
Definition: CollisionChain2D.cpp:124
Terrain * GetSouthNeighbor() const
Return south neighbor terrain.
Definition: Terrain.h:148
void SetMaxAnchor(const Vector2 &anchor)
Set maximum (bottom right) anchor in relation to the parent element (from 0 to 1)....
Definition: UIElement.cpp:784
static void RegisterObject(Context *context)
Register object factory.
Definition: SpriteSheet2D.cpp:49
static const unsigned VARIANT_VALUE_SIZE
Size of variant value. 16 bytes on 32-bit platform, 32 bytes on 64-bit platform.
Definition: Variant.h:278
Vector< String > deferredLightPSVariations_
Current variation names for deferred light volume shaders.
Definition: Renderer.h:534
void SetScriptFileAttr(const ResourceRef &value)
Set script file attribute.
Definition: ScriptInstance.cpp:439
Plane Transformed(const Matrix3 &transform) const
Return transformed by a 3x3 matrix.
Definition: Plane.cpp:68
bool HasBasePass(unsigned batchIndex) const
Return whether has a base pass.
Definition: Drawable.h:272
double GetDouble(double defaultValue=0.0) const
Return double value.
Definition: JSONValue.h:200
Pass(const String &name)
Construct.
Definition: Technique.cpp:76
bool GetSRGBSupport() const
Return whether sRGB conversion on texture sampling is supported.
Definition: Graphics.h:435
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: ArrayPtr.h:391
Vector3 boundingBoxMaxPoint_
Bounding box max point.
Definition: ParticleEmitter2D.h:163
ConstIterator(Node *ptr)
Construct with a node pointer.
Definition: HashSet.h:119
RefCount * refCount_
Pointer to the RefCount structure.
Definition: ArrayPtr.h:211
static void RegisterObject(Context *context)
Register object factory.
Definition: PhysicsWorld.cpp:201
void AddTriMeshGeometry(NavBuildData *build, Geometry *geometry, const Matrix3x4 &transform)
Add a triangle mesh to the geometry data.
Definition: NavigationMesh.cpp:1197
Vector3 GetWorldScale() const
Return scale in world space.
Definition: Node.h:465
void * ptr_
Object pointer (Direct3D).
Definition: GPUObject.h:36
bool forceGL2_
Force OpenGL 2 flag. Only used on OpenGL.
Definition: Graphics.h:735
void Render()
Render batches.
Definition: View.cpp:563
void Begin()
Begin timing.
Definition: Profiler.h:74
static void RegisterObject(Context *context)
Register object factory.
Definition: RigidBody2D.cpp:71
JSONObject * objectValue_
Object value.
Definition: JSONValue.h:307
static void RegisterObject(Context *context)
Register object factory.
Definition: LuaFile.cpp:54
void SetBlendMode(BlendMode blendMode)
Set blend mode.
Definition: ParticleEmitter2D.cpp:119
Vector< T > Keys() const
Return all the keys.
Definition: HashMap.h:583
Script object component.
Definition: ScriptInstance.h:60
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: ParticleEmitter2D.cpp:184
ShaderVariation * GetVertexShader() const
Return the vertex shader.
Definition: OGLShaderProgram.cpp:323
String ToString() const
Return as string.
Definition: BoundingBox.cpp:297
float GetSpecularIntensity() const
Return specular intensity.
Definition: Light.h:241
Image * GetSubimage(const IntRect &rect) const
Return subimage from the image by the defined rect or null if failed. 3D images are not supported....
Definition: Image.cpp:2115
void SetupDirLightShadowCamera(Camera *shadowCamera, Light *light, float nearSplit, float farSplit)
Set up a directional light shadow camera.
Definition: View.cpp:2612
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: TerrainPatch.cpp:141
void OnClickEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, UIElement *beginElement) override
React to mouse click end.
Definition: Slider.cpp:105
Light * light_
Light.
Definition: View.h:58
const PODVector< Vector2 > & GetVertices() const
Return vertices.
Definition: CollisionPolygon2D.h:57
PODVector< float > rowWidths_
Row widths.
Definition: Text.h:259
void SetVariant(const Variant &variant, Context *context=nullptr)
Set variant, context must provide for resource ref.
Definition: JSONValue.cpp:389
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLShaderProgram.cpp:75
bool ignoreEvents_
Ignore events flag, used when changing line edits manually.
Definition: FileSelector.h:189
virtual void ApplyValue(const Variant &newValue)
Apply new animation value to the target object. Called by Update().
Definition: ValueAnimationInfo.cpp:124
dtNavMeshQuery * navMeshQuery_
Detour navigation mesh query.
Definition: NavigationMesh.h:306
ConstIterator Find(const T &key) const
Return const iterator to the pair with key, or end iterator if not found.
Definition: HashMap.h:543
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionBox2D.cpp:51
String message_
Message text.
Definition: Log.h:65
bool Rename(const String &srcFileName, const String &destFileName)
Rename a file. Return true if successful.
Definition: FileSystem.cpp:500
PointOctreeQuery(PODVector< Drawable * > &result, const Vector3 &point, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with point and query parameters.
Definition: OctreeQuery.h:77
void QueueUpdate(Drawable *drawable)
Mark drawable object as requiring an update and a reinsertion.
Definition: Octree.cpp:550
Vector2 Normalized() const
Return normalized to unit length.
Definition: Vector2.h:334
unsigned numParticles_
Nummber of particles.
Definition: ParticleEmitter2D.h:151
void BeginFrame(float timeStep)
Begin new frame, with (last) frame duration in seconds and send frame start event.
Definition: Timer.cpp:105
~CheckBox() override
Destruct.
void Merge(const Vector2 &point)
Merge a point.
Definition: Rect.h:158
Pass * GetPass(unsigned passIndex) const
Return a pass, or null if not found.
Definition: Technique.h:231
bool Contains(const T &value) const
Return whether contains a specific value.
Definition: Vector.h:488
float aspectRatio_
Spotlight aspect ratio.
Definition: Light.h:379
float DotProduct(const Vector2 &rhs) const
Calculate dot product.
Definition: Vector2.h:307
String GetProgramDir() const
Return the program's directory.
Definition: FileSystem.cpp:692
bool Expired() const
Return whether the object has expired. If null pointer, always return true.
Definition: Ptr.h:498
const IntVector2 & GetHotSpot() const
Return hotspot.
Definition: Sprite.h:86
XMLElement SelectSingle(const String &query, pugi::xpath_variable_set *variables=nullptr) const
Select an element/attribute using XPath query.
Definition: XMLElement.cpp:225
asILockableSharedBool * sharedBool_
Shared boolean for checking the continued existence of the script object.
Definition: ScriptFile.h:180
UniquePtr< btConstraintSolver > solver_
Bullet constraint solver.
Definition: PhysicsWorld.h:310
Matrix3x4 view_
View transform.
Definition: DebugRenderer.h:184
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: ScriptInstance.cpp:885
bool SaveFile(const String &fileName) const override
Save the image to a file. Format of the image is determined by file extension. JPG is saved with maxi...
Definition: Image.cpp:871
Bitmap font face description.
Definition: FontFaceBitmap.h:34
Base class for objects with automatic serialization through attributes.
Definition: Serializable.h:44
void SetDepthTest(CompareMode mode)
Set depth compare.
Definition: OGLGraphics.cpp:1825
float speed_
Animation speed.
Definition: ValueAnimationInfo.h:92
void AddObstacle(Obstacle *obstacle, bool silent=false)
Used by Obstacle class to add itself to the tile cache, if 'silent' an event will not be raised.
Definition: DynamicNavigationMesh.cpp:1078
static void BulkTranspose(float *dest, const float *src, unsigned count)
Bulk transpose matrices.
Definition: Matrix3.h:312
void SetPixelShader(const String &name)
Set pixel shader name.
Definition: Technique.cpp:141
bool isClient_
Client connection flag.
Definition: Connection.h:329
static const PODVector< unsigned char > emptyBuffer
Empty buffer.
Definition: Variant.h:1383
void ClearControlPoints()
Clear the Control Points from the SplinePath.
Definition: SplinePath.cpp:177
void SetAreaCost(unsigned queryFilterType, unsigned areaID, float cost)
Set the cost of an area for the specified query filter type.
Definition: CrowdManager.cpp:335
~LuaScriptInstance() override
Destruct.
Definition: LuaScriptInstance.cpp:76
String GetSoundType() const
Return sound type, determines the master gain group.
Definition: SoundSource.h:87
Vector3 SignedScale(const Matrix3 &rotation) const
Return the scaling part with the sign. Reference rotation matrix is required to avoid ambiguity.
Definition: Matrix4.h:571
void * handle_
File handle.
Definition: File.h:125
float yaw_
Mouse yaw.
Definition: Controls.h:66
bool CheckPingpong(unsigned index)
Check whether a command should use pingponging instead of resolve from destination render target to v...
Definition: View.cpp:1928
int priority_
Zone priority.
Definition: Zone.h:164
unsigned layers_
Texture array layers number.
Definition: Texture2DArray.h:86
void ReleaseFixture()
Release fixture.
Definition: CollisionShape2D.cpp:235
void SetNumIterations(int num)
Set number of constraint solver iterations.
Definition: PhysicsWorld.cpp:333
void Update(const FrameInfo &frame)
Update and cull objects and construct rendering batches.
Definition: View.cpp:518
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Str.h:468
static void AddOrMerge(const UIBatch &batch, PODVector< UIBatch > &batches)
Add or merge a batch.
Definition: UIBatch.cpp:441
void AddRigidBody(RigidBody *body)
Add a rigid body to keep track of. Called by RigidBody.
Definition: PhysicsWorld.cpp:718
float GetFrequencyHz() const
Return frequency Hz.
Definition: ConstraintWheel2D.h:74
virtual void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
React to mouse hover.
Definition: UIElement.cpp:421
void SetLoopMode(LoopMode2D loopMode)
Set loop mode.
Definition: AnimatedSprite2D.cpp:185
void ApplyOriginalPoseToActivePose()
Definition: IKSolver.cpp:483
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: Renderer2D.cpp:222
b2FrictionJointDef jointDef_
Box2D joint def.
Definition: ConstraintFriction2D.h:64
const IntVector2 & GetSize() const
Return size.
Definition: UIElement.h:412
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: Geometry.h:119
void Disconnect(int waitMSec=0)
Disconnect. If wait time is non-zero, will block while waiting for disconnect to finish.
Definition: Connection.cpp:254
void SetLength(float length)
Set length.
Definition: ConstraintDistance2D.cpp:112
bool perVertex_
Per-vertex lighting flag.
Definition: Light.h:393
void ApplyMaterialList(const String &fileName=String::EMPTY)
Apply default materials from a material list file. If filename is empty (default),...
Definition: StaticModel.cpp:302
unsigned indexStart_
Start index.
Definition: Geometry.h:123
lua_State * luaState_
Lua state.
Definition: LuaFunction.h:103
void AddCommand(const RenderPathCommand &command)
Add a command to the end of the list.
Definition: RenderPath.cpp:474
void OnAttributeAnimationAdded() override
Handle attribute animation added.
Definition: Node.cpp:1901
void SetPixelShaderDefines(const String &defines)
Set pixel shader defines. Separate multiple defines with spaces.
Definition: Technique.cpp:153
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: RibbonTrail.cpp:180
bool Play()
Restart sound output.
Definition: Audio.cpp:137
~TextureCube() override
Destruct.
Definition: TextureCube.cpp:74
Iterator End()
Return iterator to the end.
Definition: Str.h:385
bool subscribed_
Subscribed to application update event flag.
Definition: ScriptFile.h:138
SharedPtr< FileSystem > fileSystem_
Filesystem.
Definition: FileWatcher.h:69
const PODVector< unsigned char > & GetNetBillboardsAttr() const
Return billboards attribute for network replication.
Definition: BillboardSet.cpp:452
long numAffectedRows_
Number of affected rows by recent DML query.
Definition: ODBCResult.h:70
SDL_RWops * GetRWOps()
Return the RWOps structure.
Definition: RWOpsWrapper.h:49
Matrix3x4 GetTransform() const
Return parent space transform matrix.
Definition: Node.h:404
static const Color RED
Opaque red color.
Definition: Color.h:271
Iterator Insert(const Iterator &dest, T &&value)
Move-insert an element by iterator.
Definition: Vector.h:310
unsigned viewportIndex_
Viewport index to be set when component is added to a node.
Definition: UIComponent.h:75
bool clipChildren_
Clip children flag.
Definition: UIElement.h:696
void UpdateSelectionEffect()
Update selection effect when selection or focus changes.
Definition: ListView.cpp:979
int GetMultiSample() const
Return multisampling level.
Definition: RenderSurface.cpp:97
float splineTension_
Spline tension.
Definition: ValueAnimation.h:155
Rect ReadRect()
Read a Rect.
Definition: Deserializer.cpp:159
Reference count structure.
Definition: RefCounted.h:35
bool useFixtureMass_
Use fixture mass (calculate mass & inertia from collision shapes automatically).
Definition: RigidBody2D.h:177
Button * GetCancelButton() const
Return cancel button.
Definition: FileSelector.h:105
IntVector2 layoutMinSize_
Parent's minimum size calculated by layout. Used internally.
Definition: UIElement.h:781
void SetEnabled(bool enable)
Set enabled/disabled state.
Definition: Component.cpp:120
void FinalizeBoneBoundingBoxes()
Finalize master model bone bounding boxes by merging from matching non-master bones....
Definition: AnimatedModel.cpp:1013
bool operator==(const PODVector< T > &rhs) const
Test for equality with another vector.
Definition: Vector.h:778
bool Create() override
Create the GPU texture.
Definition: OGLTexture2D.cpp:367
bool bufferDirty_
Vertex buffer needs rewrite flag.
Definition: RibbonTrail.h:213
Terrain * GetEastNeighbor() const
Return east neighbor terrain.
Definition: Terrain.h:154
Definition: UIComponent.h:39
ValueAnimation * GetAttributeAnimation(const String &name) const
Return attribute animation by name.
Definition: ObjectAnimation.cpp:235
Slider bar UI element.
Definition: Slider.h:31
void Dispose()
Dispose all data.
Definition: AnimationSet2D.cpp:508
Data structure used to represent the drag data associated to a UIElement.
Definition: UI.h:230
Vector3() noexcept
Construct a zero vector.
Definition: Vector3.h:188
void Exit()
Close the graphics window and set the exit flag. No-op on iOS/tvOS, as an iOS/tvOS application can no...
Definition: Engine.cpp:597
static const Vector3 ZERO
Zero vector.
Definition: Vector3.h:481
void SetWheelDampingRelaxation(int wheel, float damping)
Set wheel damping relaxation.
Definition: RaycastVehicle.cpp:480
PODVector< UIElement * > tempElements_
UI element query vector.
Definition: UI.h:373
int maxOccluderTriangles_
Maximum number of occluder triangles.
Definition: View.h:362
void Release() override
Release the texture.
Definition: OGLTextureCube.cpp:79
Dynamically sized buffer that can be read and written to as a stream.
Definition: VectorBuffer.h:31
Color Lerp(const Color &rhs, float t) const
Return linear interpolation of this color with another color.
Definition: Color.cpp:240
const String & GetVerb() const
Return verb used in the request. Default GET if empty verb specified on construction.
Definition: HttpRequest.h:68
PassLightingMode lightingMode_
Lighting mode.
Definition: Technique.h:156
void SendAttributeAnimationAddedEvent(const String &name)
Send attribute animation added event.
Definition: ObjectAnimation.cpp:261
Vector< SharedPtr< ShaderVariation > > & GetVertexShaders()
Return vertex shaders.
Definition: Technique.h:132
SharedPtr< Material > material_
Material.
Definition: Renderer2D.h:119
Intersection IsInside(const Rect &rect) const
Test if another rect is inside, outside or intersects.
Definition: Rect.h:221
FlagSet & operator=(const FlagSet &rhs)=default
Assignment operator from flagset.
AnimationControl()
Construct with defaults.
Definition: AnimationController.h:40
float size_
Size.
Definition: ParticleEmitter2D.h:42
Iterator Begin()
Return iterator to the beginning.
Definition: HashSet.h:500
~LineEdit() override
Destruct.
const Vector< String > & GetResourceDirs() const
Return added resource load directories.
Definition: ResourceCache.h:158
Lua script event invoker.
Definition: LuaScriptEventInvoker.h:34
float emissionTimer_
New particle emission timer.
Definition: ParticleEmitter.h:140
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: DecalSet.cpp:197
virtual UIElement * LoadChildXML(const XMLElement &childElem, XMLFile *styleFile)
Create a child by loading from XML data with style. Returns the child element if successful,...
Definition: UIElement.cpp:262
unsigned GetMaxParticles() const
Return max particles.
Definition: ParticleEmitter2D.h:111
void SetAlwaysUpdateOwner(bool enable)
Set whether updates to owner should be sent always at full rate. Default true.
Definition: NetworkPriority.cpp:79
String verb_
Verb.
Definition: HttpRequest.h:87
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: RibbonTrail.cpp:406
void SetDefaultStyle(XMLFile *style)
Set default style file for later use by children elements.
Definition: UIElement.cpp:1039
PODVector< RigidBody * > rigidBodies_
Rigid bodies in the world.
Definition: PhysicsWorld.h:316
~ScriptFile() override
Destruct.
Definition: ScriptFile.cpp:104
DebugRenderer * debugRenderer_
Debug renderer.
Definition: PhysicsWorld.h:360
FaceCameraMode GetFaceCameraMode() const
Return how the particles rotate in relation to the camera.
Definition: ParticleEffect.h:335
SharedArrayPtr< signed char > GetData() const
Return shared sound data.
Definition: Sound.h:70
Vector2 hotSpot_
Hot spot.
Definition: StaticSprite2D.h:162
Vector3 scale_
Scale.
Definition: Node.h:693
unsigned LogBaseTwo(unsigned value)
Return log base two or the MSB position of the given value.
Definition: MathDefs.h:261
float panning_
Stereo panning.
Definition: SoundSource.h:142
Vector3 Orthogonalize(const Vector3 &axis) const
Make vector orthogonal to the axis.
Definition: Vector3.h:389
void SetMorphs(const Vector< ModelMorph > &morphs)
Set vertex morphs.
Definition: Model.cpp:612
bool projectionDirty_
Projection matrix dirty flag.
Definition: Camera.h:238
bool Save(Serializer &dest) const override
Save resource with default indentation (one tab). Return true if successful.
Definition: JSONFile.cpp:213
RenderSurface * currentRenderTarget_
Color rendertarget active for the current renderpath command.
Definition: View.h:338
void RenderUpdate()
Update the UI for rendering. Called by HandleRenderUpdate().
Definition: UI.cpp:414
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:126
bool visible_
Visible.
Definition: TileMapLayer2D.h:125
float GetWeight(const String &name) const
Return animation weight.
Definition: AnimationController.cpp:507
void ResetUseTimer()
Reset last used timer.
Definition: OcclusionBuffer.cpp:331
const Vector2 & GetOtherBodyGroundAnchor() const
return other body ground anchor.
Definition: ConstraintPulley2D.h:58
IntRect layoutBorder_
Layout borders.
Definition: UIElement.h:724
void GetCollidingBodies(PODVector< RigidBody * > &result, const RigidBody *body)
Return rigid bodies that have been in collision with the specified body on the last simulation step....
Definition: PhysicsWorld.cpp:681
unsigned char areaID_
Area ID.
Definition: NavBuildData.h:50
bool Contains(const T &value) const
Return whether contains a specific value.
Definition: List.h:390
float Distance(const Vector3 &point) const
Return signed distance to a point.
Definition: Plane.h:100
HorizontalAlignment GetTextAlignment() const
Return row alignment.
Definition: Text.h:139
static void RegisterObject(Context *context)
Register object factory.
Definition: RibbonTrail.cpp:105
const String & GetName() const
Return shader name.
Definition: ShaderVariation.h:108
int left_
Left coordinate.
Definition: Rect.h:461
bool Empty() const
Return whether has no elements.
Definition: HashBase.h:133
unsigned numParticles_
Number of particles.
Definition: ParticleEffect.h:361
SharedPtr< Window > window_
Fileselector window.
Definition: FileSelector.h:149
Terrain * GetWestNeighbor() const
Return west neighbor terrain.
Definition: Terrain.h:151
float fov_
Field of view.
Definition: Camera.h:252
bool depthWrite_
Depth write mode.
Definition: Technique.h:160
bool fixedScreenSize_
Billboards fixed screen size flag.
Definition: ParticleEffect.h:371
bool AddTile(const PODVector< unsigned char > &tileData) override
Add tile to navigation mesh.
Definition: DynamicNavigationMesh.cpp:555
AnimationBlendMode
Animation blending mode.
Definition: AnimationState.h:42
VariantMap & GetEventDataMap() const
Return a preallocated map for event data. Used for optimization to avoid constant re-allocation of ev...
Definition: Object.cpp:401
float pointSize_
Point size.
Definition: FontFace.h:112
ConstraintFriction2D(Context *context)
Construct.
Definition: ConstraintFriction2D.cpp:37
float GetNearDistance() const
Return near distance.
Definition: SoundSource3D.h:66
void ClearParameterSource(ShaderParameterGroup group)
Clear a parameter source. Affects only the current shader program if appropriate.
Definition: OGLShaderProgram.cpp:387
void Reset()
Reset. Clear all remembered nodes and components.
Definition: SceneResolver.cpp:39
const PODVector< unsigned char > & GetNetAngularVelocityAttr() const
Return network angular velocity attribute.
Definition: RigidBody.cpp:855
void SetFace(unsigned index, const Vector3 &v0, const Vector3 &v1, const Vector3 &v2)
Set a triangle face by index.
Definition: Polyhedron.cpp:293
T * ptr_
Pointer to the array.
Definition: ArrayPtr.h:426
GPUObject(Graphics *graphics)
Construct with graphics subsystem pointer.
Definition: GPUObject.cpp:33
void SetTexture(Texture2D *texture)
Set texture.
Definition: Sprite2D.cpp:104
WeakPtr< Audio > audio_
Audio subsystem.
Definition: SoundSource.h:130
void Push(const T &value)
Add an element at the end.
Definition: Vector.h:240
void RemoveComponent()
Template version of removing a component.
Definition: Node.h:720
void SetFormat(unsigned format)
Set render texture pixel format. Default is RGB.
Definition: View3D.cpp:110
int GetFontOversampling() const
Get the oversampling (horizonal stretching) used to improve subpixel font rendering....
Definition: UI.h:212
unsigned GetNumGeometries() const
Return number of geometries.
Definition: StaticModel.h:80
bool FadeOthers(const String &name, float targetWeight, float fadeTime)
Fade other animations on the same layer to target weight. Return true on success.
Definition: AnimationController.cpp:269
DragAndDropModeFlags dragDropMode_
Drag and drop flags.
Definition: UIElement.h:718
LightBatchQueue * lightQueue_
Light queue.
Definition: Light.h:369
void SetData(const PODVector< unsigned char > &data)
Set data from another buffer.
Definition: VectorBuffer.cpp:92
String pixelShaderName_
Pixel shader name.
Definition: RenderPath.h:152
bool WriteString(const String &value)
Write a null-terminated string.
Definition: Serializer.cpp:182
void * GetSurface() const
Return Direct3D9 surface.
Definition: RenderSurface.h:105
XMLElement NextResult() const
Return next XPath query result. Only valid when this instance of XMLElement is itself one of the quer...
Definition: XMLElement.cpp:995
bool IsOpen() const
Return whether is open.
Definition: NamedPipe.cpp:344
Vector3 parentPos_
Parent position. Trail bone type uses this.
Definition: RibbonTrail.h:53
void SetFocus(bool enable)
Set whether is focused. Only one element can be focused at a time.
Definition: UIElement.cpp:929
Vector3 Translation() const
Return the translation part.
Definition: Matrix3x4.h:603
const HashMap< StringHash, Vector< AttributeInfo > > & GetAllAttributes() const
Return all registered attributes.
Definition: Context.h:184
T * GetSubsystem() const
Template version of returning a subsystem.
Definition: Object.h:196
void SetMaxParticles(unsigned maxParticles)
Set max particles.
Definition: ParticleEmitter2D.cpp:130
bool Test(const Enum value) const
Return true if specified enum value is set.
Definition: FlagSet.h:214
PODVector< UIElement * > GetItems() const
Return all items.
Definition: ListView.cpp:838
bool GetBlockEvents() const
Return sending and receiving events blocking status.
Definition: Object.h:173
void MixMonoToMono(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix mono sample to mono buffer.
Definition: SoundSource.cpp:605
void SetLineAntiAlias(bool enable)
Set line antialiasing on/off. Default false.
Definition: DebugRenderer.cpp:67
bool operator!=(const HashSet< T > &rhs) const
Test for inequality with another hash set.
Definition: HashSet.h:269
PODVector< unsigned char > GetNavigationDataAttr() const override
Return navigation data attribute.
Definition: DynamicNavigationMesh.cpp:725
bool GetDepthWrite() const
Return depth write mode.
Definition: Technique.h:105
const KeyValue & Front() const
Return first pair.
Definition: HashMap.h:615
HashSet< unsigned > networkUpdateNodes_
Nodes to check for attribute changes on the next network update.
Definition: Scene.h:304
UIElement * GetTouchedElement()
Return last touched UI element, used by scripting integration.
Definition: Input.cpp:81
void SetMaxTimeToLive(float time)
Set particle maximum time to live.
Definition: ParticleEffect.cpp:545
Vector< ShadowBatchQueue > shadowSplits_
Shadow map split queues.
Definition: Batch.h:305
void Resize(unsigned newSize)
Resize array.
Definition: JSONValue.cpp:234
PropertySet2D * GetTilePropertySet(unsigned gid) const
Return tile property set by gid, if not exist return 0.
Definition: TmxFile2D.cpp:574
Sphere(const Vector3 *vertices, unsigned count) noexcept
Construct from an array of vertices.
Definition: Sphere.h:56
Work queue item.
Definition: WorkQueue.h:43
StringHash type_
Object type.
Definition: Variant.h:125
bool GetUseSystemClipboard() const
Return whether is using the system clipboard.
Definition: UI.h:194
void Sort()
Sort keys. After sorting the set can be iterated in order until new elements are inserted.
Definition: HashSet.h:411
unsigned GetCorrectedLodLevel(unsigned lodLevel)
Return a corrected LOD level to ensure stitching can work correctly.
Definition: TerrainPatch.cpp:278
Definition: NavBuildData.h:102
void StopAll(float fadeOutTime=0.0f)
Stop all animations. Zero fadetime is instant.
Definition: AnimationController.cpp:241
Base class for octree queries.
Definition: OctreeQuery.h:40
SharedPtr< SoundStream > soundStream_
Sound stream that is being played.
Definition: SoundSource.h:183
FontType
Font file type.
Definition: Font.h:39
void SetImageRect(const IntRect &rect)
Set part of texture to use as the image.
Definition: BorderImage.cpp:85
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: Text3D.cpp:561
unsigned GetAvailableSize() const
Return amount of bytes in the read buffer.
Definition: HttpRequest.cpp:293
bool LoadArray(PListValueVector &array, const XMLElement &arrayElem)
Load array.
Definition: PListFile.cpp:366
bool interpolation_
Interpolation flag.
Definition: PhysicsWorld.h:350
void CalculateUVs(Decal &decal, const Matrix3x4 &view, const Matrix4 &projection, const Vector2 &topLeftUV, const Vector2 &bottomRightUV)
Calculate UV coordinates for the decal.
Definition: DecalSet.cpp:960
void SetGain(float gain)
Set gain. 0.0 is silence, 1.0 is full volume.
Definition: SoundSource.cpp:290
void RefreshMemoryUse()
Recalculate the memory used by the material.
Definition: Material.cpp:1302
Vector2 sizeMin_
Particle size minimum.
Definition: ParticleEffect.h:395
void Push(const T &value)
Insert an element to the end.
Definition: List.h:279
ObjectFactoryImpl(Context *context)
Construct.
Definition: Object.h:236
~WeakPtr() noexcept
Destruct. Release the weak reference to the object.
Definition: Ptr.h:322
bool HasColorGradient() const
Return whether has different color in at least one corner.
Definition: UIElement.h:535
void SetBoundingBox(const BoundingBox &bnds)
Set the bounding box of this area, in local space.
Definition: NavArea.h:56
void SetFixedHeight(int height)
Set fixed height.
Definition: UIElement.cpp:664
SharedPtr< Geometry > geometry_
Geometry.
Definition: BillboardSet.h:183
bool noStencil_
Whether is using a custom readable depth texture without a stencil channel.
Definition: View.h:382
void Update()
Update. Called by HandlePostUpdate().
Definition: DebugHud.cpp:114
void SetMass(float mass)
Set mass.
Definition: RigidBody2D.cpp:127
JSONValue(const char *value)
Construct with a C string.
Definition: JSONValue.h:119
Definition of a model's vertex morph.
Definition: Model.h:54
Vector3 position_
Position.
Definition: Drawable2D.h:40
unsigned numVariations_
Number of unique variations so far.
Definition: Shader.h:81
String definesClipPlane_
Defines to use in compiling + CLIPPLANE define appended. Used only on Direct3D11.
Definition: ShaderVariation.h:174
WrapMode GetShaderParameterAnimationWrapMode(const String &name) const
Return shader parameter animation wrap mode.
Definition: Material.cpp:1215
bool CreateCrowd()
Create and initialized internal Detour crowd object. When it is a recreate, it preserves the configur...
Definition: CrowdManager.cpp:568
void SetLinkedDepthStencil(RenderSurface *depthStencil)
Set linked depth-stencil surface.
Definition: RenderSurface.cpp:66
bool activate_
If the RigidBody should be activated.
Definition: RaycastVehicle.h:186
bool showPercentText_
Flag to show the percent text.
Definition: ProgressBar.h:106
void Merge(const Vector3 &point)
Merge a point.
Definition: Sphere.h:111
~Connection() override
Destruct.
Definition: Connection.cpp:88
void SetNumExtraInstancingBufferElements(int elements)
Set number of extra instancing buffer elements. Default is 0. Extra 4-vectors are available through T...
Definition: Renderer.cpp:467
bool ResetAppStats(const String &label)
Reset application-specific stats. Return true if it was erased successfully.
Definition: DebugHud.cpp:293
void SetupShadowCameras(LightQueryResult &query)
Set up initial shadow camera view(s).
Definition: View.cpp:2521
void AddTextureTime(const Rect &uv, float time)
Add a texture frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:666
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: StaticSprite2D.cpp:271
unsigned GetAreaID() const
Get the area id for this volume.
Definition: NavArea.h:47
PODVector< Drawable * > occluders_
Occluder objects.
Definition: View.h:400
unsigned northID_
Node ID of north neighbor.
Definition: Terrain.h:317
bool vertexLights_
Vertex lights flag.
Definition: RenderPath.h:184
void SetIndent(int indent)
Set horizontal indentation.
Definition: UIElement.cpp:1077
static const XMLElement EMPTY
Empty XMLElement.
Definition: XMLElement.h:303
rcContext * ctx_
Recast context.
Definition: NavBuildData.h:78
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: AnimatedModel.cpp:259
Node * Prev() const
Return previous node.
Definition: HashSet.h:57
Frustum() noexcept=default
Construct a degenerate frustum with all points at origin.
Window UI element that can optionally by moved or resized.
Definition: Window.h:48
unsigned GetQueryFilterType() const
Get the agent's query filter type.
Definition: CrowdAgent.h:163
Mutex moduleMutex_
Script module create/delete mutex.
Definition: Script.h:145
void SetUseScreenKeyboard(bool enable)
Set whether to show the on-screen keyboard (if supported) when a LineEdit is focused....
Definition: UI.cpp:686
@ CA_STATE_INVALID
The agent is not in a valid state.
Definition: CrowdAgent.h:53
unsigned GetUseTimer()
Return time since last use in milliseconds.
Definition: OcclusionBuffer.cpp:458
void DecScriptNestingLevel()
Decrease script nesting level.
Definition: Script.h:116
Color(const Color &color, float a) noexcept
Construct from another color and modify the alpha.
Definition: Color.h:66
void Release() override
Release buffer.
Definition: OGLIndexBuffer.cpp:57
Vector2 Lerp(const Vector2 &rhs, float t) const
Linear interpolation with another vector.
Definition: Vector2.h:322
float GetStartParticleSizeVariance() const
Return start particle size variance.
Definition: ParticleEffect2D.h:194
void SetLinearVelocity(const Vector2 &linearVelocity)
Set linear velocity.
Definition: RigidBody2D.cpp:298
unsigned GetNumBillboards() const
Return number of billboards.
Definition: BillboardSet.h:107
unsigned Capacity() const
Return capacity of vector.
Definition: Vector.h:1154
bool AddDecal(Drawable *target, const Vector3 &worldPosition, const Quaternion &worldRotation, float size, float aspectRatio, float depth, const Vector2 &topLeftUV, const Vector2 &bottomRightUV, float timeToLive=0.0f, float normalCutoff=0.1f, unsigned subGeometry=M_MAX_UNSIGNED)
Add a decal at world coordinates, using a target drawable's geometry for reference....
Definition: DecalSet.cpp:301
float GetRotationStart() const
Return rotation start.
Definition: ParticleEffect2D.h:230
void OnSceneSet(Scene *scene) override
Handle node being assigned.
Definition: CrowdAgent.cpp:609
unsigned numDrawables_
Number of drawable objects in this octant and child octants.
Definition: Octree.h:150
unsigned GetSRGBFormat(unsigned format)
Convert format to sRGB. Not used on Direct3D9.
Definition: OGLTexture.cpp:305
void RemoveKnot()
Remove the last knot on the spline.
Definition: Spline.h:102
IntRect border_
Border dimensions on screen.
Definition: BorderImage.h:121
TextureCube(Context *context)
Construct.
Definition: TextureCube.cpp:61
float lodDistance_
LOD distance.
Definition: Geometry.h:131
bool IsClient() const
Return whether is a client connection.
Definition: Connection.h:195
bool operator!=(const KeyValue &rhs) const
Test for inequality with another pair.
Definition: HashMap.h:73
HashMap< String, SharedPtr< LuaFunction > > functionNameToFunctionMap_
Function name to function map.
Definition: LuaScript.h:129
float range_
ProgressBar range.
Definition: ProgressBar.h:102
void SetShowPercentText(bool enable)
Sets the flag to display the percent text.
Definition: ProgressBar.cpp:114
void SetMinInstances(int instances)
Set minimum number of instances required in a batch group to render as instanced.
Definition: Renderer.cpp:476
CascadeParameters(float split1, float split2, float split3, float split4, float fadeStart, float biasAutoAdjust=1.0f)
Construct with initial values.
Definition: Light.h:87
static void RegisterObject(Context *context)
Register object factory.
Definition: Model.cpp:70
void StopSound(Sound *sound)
Stop any sound source playing a certain sound clip.
Definition: Audio.cpp:197
XMLElement CreateRoot(const String &name)
Clear the document and create a root element.
Definition: XMLFile.cpp:144
int GetInt(int defaultValue=0) const
Return integer value.
Definition: JSONValue.h:194
T value_
Value.
Definition: Variant.h:271
~IKSolver() override
Default destructor.
Definition: IKSolver.cpp:68
int width_
Texture width.
Definition: Texture.h:217
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: TextureCube.h:91
float minHeight_
Minimum height.
Definition: CollisionShape.h:137
void StorePreparedView(View *view, Camera *camera)
Mark a view as prepared by the specified culling camera.
Definition: Renderer.cpp:1142
Node()=default
Construct undefined.
const String & GetProperty(const String &name) const
Return property.
Definition: TileMapLayer2D.cpp:262
unsigned position_
Stream position.
Definition: Deserializer.h:147
void SetScriptNetworkDataAttr(const PODVector< unsigned char > &data)
Set script network serialization attribute by calling a script function.
Definition: ScriptInstance.cpp:473
Vector2 GetCharSize(unsigned index)
Return size of character by index.
Definition: Text.cpp:431
unsigned page_
Texture page. M_MAX_UNSIGNED if not yet resident on any texture.
Definition: FontFace.h:58
unsigned dragButtonCount_
Drag button count.
Definition: UIElement.h:748
std::atomic< bool > shutDown_
Shutting down flag.
Definition: WorkQueue.h:140
ConstraintType GetConstraintType() const
Return constraint type.
Definition: Constraint.h:107
void FinishSaving(Serializer *dest) const
Finish saving. Sets the scene filename and checksum.
Definition: Scene.cpp:1281
void SetParametersDirty()
Mark parameters dirty. Called by Graphics.
Definition: Texture.cpp:229
void SetDrawAabb(bool drawAabb)
Set draw aabb.
Definition: PhysicsWorld2D.cpp:364
A set of flags defined by an Enum.
Definition: FlagSet.h:46
virtual void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
React to mouse drag motion.
Definition: UIElement.cpp:433
String GetValueTypeName() const
Return value type's name.
Definition: JSONValue.cpp:176
float GetRatio() const
Return ratio.
Definition: ConstraintPulley2D.h:67
void SetFontAttr(const ResourceRef &value)
Set font attribute.
Definition: Text.cpp:443
Technique * GetDefaultTechnique() const
Return default non-textured material technique.
Definition: Renderer.cpp:564
Drawable * drawable_
Drawable.
Definition: OctreeQuery.h:170
bool skinningDirty_
Skinning dirty flag.
Definition: AnimatedModel.h:251
bool hasExecuted_
Has executed.
Definition: LuaFile.h:64
VertexMaskFlags GetElementMask() const
Return legacy vertex element mask. Note that both semantic and type must match the legacy element for...
Definition: VertexBuffer.h:103
void Clear()
Reset to empty.
Definition: Variant.h:560
Button * cancelButton_
Cancel button.
Definition: FileSelector.h:167
unsigned char drawableFlags_
Drawable flags.
Definition: Drawable.h:335
void Resize(unsigned newLength)
Resize the string.
Definition: Str.cpp:418
AnimationTrack * CreateTrack(const String &name)
Create and return a track by name. If track by same name already exists, returns the existing.
Definition: Animation.cpp:300
float minRadius_
Min radius.
Definition: ParticleEffect2D.h:312
const PODVector< Drawable * > & GetGeometries() const
Return geometry objects.
Definition: View.h:163
unsigned size_
Data size.
Definition: Graphics.h:75
Node * ReserveNode()
Reserve a node.
Definition: HashSet.h:602
void SetForceAutoHint(bool enable)
Set whether to force font autohinting instead of using FreeType's TTF bytecode interpreter.
Definition: UI.cpp:700
Cursor image and hotspot information.
Definition: Cursor.h:55
bool Equals(T lhs, T rhs)
Check whether two floating point values are equal within accuracy.
Definition: MathDefs.h:71
void CreateThreads(unsigned numThreads)
Create worker threads. Can only be called once.
Definition: WorkQueue.cpp:86
bool useGradient_
Gradient flag.
Definition: UIBatch.h:95
ValueAnimationInfo * GetAttributeAnimationInfo(const String &name) const
Return attribute animation info by name.
Definition: ObjectAnimation.cpp:253
float farSplit_
Directional light cascade far split distance.
Definition: Batch.h:288
bool GetUseTextureRect() const
Return whether to use custom-defined texture rectangle.
Definition: StaticSprite2D.h:110
unsigned GetMorphRangeCount(unsigned bufferIndex) const
Return vertex buffer morph range vertex count.
Definition: Model.cpp:778
float Lightness() const
Return lightness as defined for HSL: average of the largest and smallest values of the RGB components...
Definition: Color.cpp:151
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: BillboardSet.cpp:362
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionChain2D.cpp:47
bool QueueResource(StringHash type, const String &name, bool sendEventOnFailure, Resource *caller)
Queue loading of a resource. The name must be sanitated to ensure consistent format....
bool Contains(const StringHash &hash) const
Return whether the string in contained in the register.
Definition: StringHashRegister.cpp:89
float GetEffectDepthBias() const
Return effect Z bias.
Definition: Text.h:191
void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag begin.
Definition: LineEdit.cpp:139
Viewport definition either for a render surface or the backbuffer.
Definition: Viewport.h:41
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: DecalSet.cpp:203
unsigned char * buffer_
Buffer.
Definition: VectorBase.h:68
static void RegisterObject(Context *context)
Register object factory.
Definition: CrowdManager.cpp:94
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: StaticModel.cpp:189
Pass * GetSupportedPass(unsigned passIndex) const
Return a pass that is supported for rendering, or null if not found.
Definition: Technique.h:237
unsigned GetSelection() const
Return first selected index, or M_MAX_UNSIGNED if none selected.
Definition: ListView.cpp:884
unsigned BuildTiles(Vector< NavigationGeometryInfo > &geometryList, const IntVector2 &from, const IntVector2 &to)
Build tiles in the rectangular area. Return number of built tiles.
Definition: NavigationMesh.cpp:1530
Color() noexcept
Construct with default values (opaque white).
Definition: Color.h:54
const float * Data() const
Return float data.
Definition: Quaternion.h:455
VariantVector parameters_
Parameters.
Definition: ScriptEventListener.h:48
Color colorDelta_
Color delta.
Definition: ParticleEmitter2D.h:52
void Clear()
Clear array or object.
Definition: JSONValue.cpp:336
void MarkNetworkUpdate() override
Mark for attribute check on the next network update.
Definition: Node.cpp:284
void AddSkeleton(const Skeleton &skeleton, const Color &color, bool depthTest=true)
Add a skeleton.
Definition: DebugRenderer.cpp:354
Vector< TmxLayer2D * > layers_
Layers.
Definition: TmxFile2D.h:226
CreateMode
Component and child node creation mode for networking.
Definition: Node.h:43
WeakPtr< SmoothedTransform > smoothedTransform_
Smoothed transform, if has one.
Definition: RigidBody.h:277
Navigation area stub.
Definition: NavBuildData.h:45
Vector2(const float *data) noexcept
Construct from a float array.
Definition: Vector2.h:203
IntVector2 numPatches_
Terrain size in patches.
Definition: Terrain.h:279
FrameInfo frame_
Frame info for rendering.
Definition: Renderer.h:536
~OcclusionBuffer() override
Destruct.
Vector2 max_
Maximum vector.
Definition: Rect.h:261
List & operator=(const List< T > &rhs)
Assign from another list.
Definition: List.h:208
float GetRotationWeight() const
How strongly the target node's rotation influences the solution.
Definition: IKEffector.cpp:183
Vector< Pair< String, CubeMapFace > > outputs_
Output rendertarget names and faces.
Definition: RenderPath.h:162
bool skinningDirty_
Skinning dirty flag.
Definition: DecalSet.h:247
Vector2 Abs() const
Return absolute vector.
Definition: Vector2.h:319
SharedPtr< UIElement3D > rootElement_
UIElement to be rendered into texture. It also handles screen to UI coordinate translation.
Definition: UIComponent.h:73
VertexBuffer * GetVertexBuffer() const
Return vertex buffer.
Definition: TerrainPatch.cpp:263
float GetTime() const
Return time position.
Definition: ValueAnimationInfo.h:72
void SetMinPriority(float priority)
Set minimum priority. Default 0 (no updates when far away enough).
Definition: NetworkPriority.cpp:73
URHO_CPP14(constexpr) RandomAccessConstIterator< T > &operator
Assign from a non-const iterator.
void * externalWindow_
External window, null if not in use (default.)
Definition: Graphics.h:718
bool IsTextSelectable() const
Return whether selections are allowed.
Definition: LineEdit.h:108
bool IsVisibleEffective() const
Return whether element is effectively visible (parent element chain is visible).
Definition: UIElement.cpp:1559
bool GetAlphaToCoverage() const
Return alpha-to-coverage mode.
Definition: Material.h:235
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: Renderer2D.cpp:104
bool LoadRawFile(const String &fileName)
Load script file on file system (i.e. not from resource cache). Return true if successful.
Definition: LuaScript.cpp:266
~AnimationStateTrack()
Destruct.
Viewport * GetViewport() const
Return viewport.
Definition: View3D.cpp:151
unsigned GetNumGeometries() const
Return number of geometries.
Definition: CustomGeometry.h:132
float SumRGB() const
Return sum of RGB components.
Definition: Color.h:168
PODVector< float > uiVertexData_
Text vertex data.
Definition: Text3D.h:200
Vector3 v1_
Vertex a.
Definition: DebugRenderer.h:81
void SetVertexShaderDefineExcludes(const String &excludes)
Set vertex shader define excludes. Use to mark defines that the shader code will not recognize,...
Definition: Technique.cpp:159
Matrix3x4(const float *data) noexcept
Construct from a float array.
Definition: Matrix3x4.h:126
~IKConstraint() override
Destructs he IK constraint.
PODVector< unsigned char > GetScriptDataAttr() const
Get script file serialization attribute by calling a script function.
Definition: ScriptInstance.cpp:504
void SendAllBuffers()
Send out all buffered messages.
Definition: Connection.cpp:403
static unsigned deferredPassIndex
Index for deferred G-buffer pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:266
Vector2 position_
Position.
Definition: TmxFile2D.h:149
void Reset()
Reset number of triangles.
Definition: OcclusionBuffer.cpp:146
T & At(unsigned index)
Return element at index.
Definition: Vector.h:208
const IntVector2 & GetOffset() const
Return offset.
Definition: Sprite2D.h:74
void UpdateAsyncLoading()
Update asynchronous loading.
Definition: Scene.cpp:1188
void SetPositionIterations(int positionIterations)
Set position iterations.
Definition: PhysicsWorld2D.cpp:425
HashSet< Scene * > networkScenes_
Networked scenes.
Definition: Network.h:162
bool alwaysUpdateOwner_
Update owner at full rate flag.
Definition: NetworkPriority.h:75
void RemoveCollisionShape(CollisionShape *shape)
Remove a collision shape. Called by CollisionShape.
Definition: PhysicsWorld.cpp:735
void AddEventHandlerInternal(Object *sender, StringHash eventType, const String &handlerName)
Add an event handler and create the necessary proxy object.
Definition: ScriptFile.cpp:657
unsigned GetNumPrimitives() const
Return number of primitives rendered.
Definition: Renderer.h:346
Iterator Insert(const Iterator &dest, const T &value)
Insert an element by iterator.
Definition: Vector.h:891
Value animation event frame.
Definition: ValueAnimation.h:57
bool IsValid() const
Check that function is valid.
Definition: LuaFunction.cpp:63
HiresTimer frameTimer_
Frame update timer.
Definition: Engine.h:130
void SetScriptDataAttr(const PODVector< unsigned char > &data)
Set script file serialization attribute by calling a script function.
Definition: LuaScriptInstance.cpp:434
void RemoveEventHandlers(Object *sender) override
Remove all scripted event handlers for a specific sender.
Definition: LuaScriptInstance.cpp:348
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: BillboardSet.h:185
void ReplacePrint()
Replace print.
Definition: LuaScript.cpp:384
Vector2 lowLimit_
Low limit.
Definition: Constraint.h:193
Optional resource request processor. Can deny requests, re-route resource file names,...
Definition: ResourceCache.h:69
PODVector< ConstantBuffer * > dirtyConstantBuffers_
Dirty constant buffers.
Definition: OGLGraphicsImpl.h:146
void SetTailColumn(unsigned tailColumn)
Set number of column for every tails. Can be useful for fixing distortion at high angle.
Definition: RibbonTrail.cpp:355
SharedPtr< AttributeAccessor > accessor_
Helper object for accessor mode.
Definition: Attribute.h:108
PODVector< Drawable * > threadedGeometries_
Geometry objects that will be updated in worker threads.
Definition: View.h:398
void SetRotation(const Quaternion &rotation)
Set rotation in parent space.
Definition: Node.cpp:450
WeakPtr< Constraint2D > otherConstraint_
Other body constraint.
Definition: ConstraintGear2D.h:68
2D wheel constraint component.
Definition: ConstraintWheel2D.h:31
StoredLogMessage()=default
Construct undefined.
static Sint64 Size(SDL_RWops *context)
Return data size of the object.
Definition: RWOpsWrapper.h:53
XPathResultSet SelectPrepared(const XPathQuery &query) const
Select elements/attributes using XPath query.
Definition: XMLElement.cpp:255
void DynamicCast(const WeakArrayPtr< U > &rhs)
Perform a dynamic cast from a weak array pointer of another type.
Definition: ArrayPtr.h:358
unsigned char adaptiveDepth
adaptive
Definition: CrowdManager.h:55
bool Null() const
Check if the pointer is null.
Definition: Ptr.h:480
Vector2 GetWorldPosition2D() const
Return position in world space (for Urho2D).
Definition: Node.h:416
SharedPtr< Material > defaultMaterial_
Default material.
Definition: Renderer.h:490
int GetNumExtraInstancingBufferElements() const
Return number of extra instancing buffer elements.
Definition: Renderer.h:313
Object * GetSender() const
Return event sender. Null if the handler is non-specific.
Definition: Object.h:277
int mixRate_
Mixing rate.
Definition: Audio.h:137
JSONValueType GetValueType() const
Return value type.
Definition: JSONValue.cpp:166
void SetProfilerMaxDepth(unsigned depth)
Set maximum profiler block depth, default unlimited.
Definition: DebugHud.cpp:245
bool Equals(const Vector3 &rhs) const
Test for equality with another vector with epsilon.
Definition: Vector3.h:408
const Vector< SharedPtr< PackageFile > > & GetRequiredPackageFiles() const
Return required package files.
Definition: Scene.h:211
void SetAspectRatioInternal(float aspectRatio)
Set aspect ratio without disabling the "auto aspect ratio" mode. Called internally by View.
Definition: Camera.cpp:597
bool executeConsoleCommands_
Flag for executing engine console commands as script code. Default to true.
Definition: Script.h:149
void ClearObjectTypeCache()
Clear the inbuild object type cache.
Definition: Script.cpp:298
void SetWheelDirection(int wheel, Vector3 direction)
Set wheel direction vector.
Definition: RaycastVehicle.cpp:620
const Vector2 & GetSize() const
Return size (for rectangle and ellipse).
Definition: TileMapDefs2D.h:183
void SetOwner(void *owner)
Set owner.
Definition: ValueAnimation.cpp:250
float time_
Time.
Definition: ValueAnimation.h:60
AutoRemoveMode
Autoremove is used by some components for automatic removal from the scene hierarchy upon completion ...
Definition: Component.h:39
bool Build() override
Build/rebuild the entire navigation mesh.
Definition: DynamicNavigationMesh.cpp:337
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: BillboardSet.cpp:427
unsigned indexCount_
Number of indices.
Definition: Geometry.h:125
void RemoveDecals(unsigned num)
Remove n oldest decals.
Definition: DecalSet.cpp:485
unsigned GetNumThreads() const
Return number of worker threads.
Definition: WorkQueue.h:104
Helper class for automatically beginning and ending a profiling block.
Definition: Profiler.h:231
@ ASYNC_FAIL
BeginLoad() failed.
Definition: Resource.h:50
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: AnimatedSprite2D.cpp:86
unsigned vertexEnd_
Vertex data end index.
Definition: UIBatch.h:91
void SetPosition2D(float x, float y)
Set position in parent space (for Urho2D).
Definition: Node.h:139
bool EqualsExceptVSync(const ScreenModeParams &rhs) const
Compare contents except vsync flag.
Definition: Graphics.h:104
IKEffector(Context *context)
Constructs a new IK effector.
Definition: IKEffector.cpp:43
Tmx tile layer.
Definition: TmxFile2D.h:91
bool IsScaled() const
Return whether scene node scale affects billboards' size.
Definition: ParticleEffect.h:239
XMLElement SelectSinglePrepared(const XPathQuery &query) const
Select an element/attribute using XPath query.
Definition: XMLElement.cpp:235
List< AsyncExecRequest * > asyncExecQueue_
Async execution queue.
Definition: FileSystem.h:119
const PackageEntry * GetEntry(const String &fileName) const
Return the file entry corresponding to the name, or null if not found. This will be case-insensitive ...
Definition: PackageFile.cpp:135
Plane clipPlane_
Clipping plane.
Definition: Camera.h:272
T Get() const
Return the value, template version.
bool executeConsoleCommands_
Flag for executing engine console commands as OS-specific system command. Default to true.
Definition: FileSystem.h:123
FlagSet()=default
Empty constructor.
void SetPoolSize(unsigned poolSize)
Set internal database connection pool size.
Definition: Database.h:65
bool ExecuteString(const String &string)
Execute script string. Return true if successful.
Definition: LuaScript.cpp:251
void PushFront(const T &value)
Insert an element to the beginning.
Definition: List.h:282
unsigned offset_
Offset in constant buffer.
Definition: ShaderVariation.h:57
bool occluder_
Occluder flag.
Definition: Terrain.h:297
bool swapXY_
Swap X and Y.
Definition: StaticSprite2D.h:152
void GetCursorPositionAndVisible(IntVector2 &pos, bool &visible)
Return cursor position and visibility either from the cursor element, or the Input subsystem.
Definition: UI.cpp:1305
int GetEffectStrokeThickness() const
Return effect stroke thickness.
Definition: Text.h:163
void InsertChild(unsigned index, UIElement *element)
Insert a child element into a specific position in the child list.
Definition: UIElement.cpp:1293
unsigned maxVertices_
Maximum vertices.
Definition: DecalSet.h:235
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: UIElement.cpp:159
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: DecalSet.cpp:229
RefCount * refCount_
Pointer to the RefCount structure.
Definition: Ptr.h:538
JSONValue & GetRoot()
Return root value.
Definition: JSONFile.h:57
int Refs() const
Return the array's reference count, or 0 if null pointer or if array has expired.
Definition: ArrayPtr.h:379
void SetPosition(const Vector3 &position)
Set offset position.
Definition: CollisionShape.cpp:749
String(const char *str)
Construct from a C string.
Definition: Str.h:79
bool operator!=(const HashIteratorBase &rhs) const
Test for inequality with another iterator.
Definition: HashBase.h:76
void SetSpeed(float speed)
Set the movement Speed.
Definition: SplinePath.h:68
bool depthHierarchyDirty_
Depth hierarchy needs update flag.
Definition: OcclusionBuffer.h:199
Graphics * GetGraphics() const
Return graphics subsystem.
Definition: View.cpp:674
unsigned vertexCount_
Number of vertices.
Definition: VertexBuffer.h:150
HashMap(HashMap< T, U > &&map) noexcept
Move-construct from another hash map.
Definition: HashMap.h:235
void SetValue(float value)
Set slider current value.
Definition: Slider.cpp:182
void SetOtherBodyAnchor(const Vector2 &anchor)
Set other body anchor.
Definition: ConstraintRope2D.cpp:69
PODVector< unsigned char > offMeshDir_
Offmesh connection direction.
Definition: NavBuildData.h:76
UpdateEventFlags GetUpdateEventMask() const
Return what update events are subscribed to.
Definition: LogicComponent.h:83
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Constraint.cpp:416
PODVector< float > offMeshRadii_
Offmesh connection radii.
Definition: NavBuildData.h:70
HashMap< StringHash, AnimationTrack > tracks_
Animation tracks.
Definition: Animation.h:199
void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse hover.
Definition: Window.cpp:116
void SetMargin(float margin)
Set collision margin.
Definition: CollisionShape.cpp:780
int GetPacketsOutPerSec() const
Return packets sent per second.
Definition: Connection.cpp:1116
void UnsubscribeFromAllEvents()
Unsubscribe from all events.
Definition: Object.cpp:250
void InitializeJointDef(b2JointDef *jointDef)
Initialize joint def.
Definition: Constraint2D.cpp:173
bool GetStopAtEnd() const
Return whether playback should stop when no more data.
Definition: SoundStream.h:60
void SetNeighbors(TerrainPatch *north, TerrainPatch *south, TerrainPatch *west, TerrainPatch *east)
Set neighbor patches.
Definition: TerrainPatch.cpp:219
Camera(Context *context)
Construct.
Definition: Camera.cpp:53
void Clear()
Clear to undefined state.
Definition: BoundingBox.h:244
VectorBuffer attrBuffer_
Attribute buffer for network replication.
Definition: RigidBody.h:287
const Rect & GetDrawRect() const
Return draw rect.
Definition: StaticSprite2D.h:80
void SetERP(float erp)
Set constraint error reduction parameter. Zero = leave to default.
Definition: Constraint.cpp:302
const Vector2 & GetHighLimit() const
Return high limit.
Definition: Constraint.h:131
bool RemoveTrack(const String &name)
Remove a track by name. Return true if was found and removed successfully. This is unsafe if the anim...
Definition: Animation.cpp:314
Color GetPixel(int x, int y) const
Return a 2D pixel color.
Definition: Image.cpp:1475
float repeatRate_
Paging repeat rate.
Definition: Slider.h:116
void SetShadowCompare(bool enable)
Set shadow compare mode. Not used on Direct3D9.
Definition: Texture.cpp:92
SharedPtr< Image > GetNextLevel() const
Return next mip level by bilinear filtering. Note that if the image is already 1x1x1,...
Definition: Image.cpp:1591
void NewConnectionEstablished(const SLNet::AddressOrGUID &connection)
Handle a new client connection.
Definition: Network.cpp:308
void SetImageRect(const IntRect &rect)
Set part of texture to use as the image.
Definition: Sprite.cpp:201
int GetMaxFps() const
Return the maximum frames per second.
Definition: Engine.h:85
QualifierFlags qualifiers_
Qualifier keys held down.
Definition: UI.h:389
unsigned GetNumBatches() const
Return number of batches rendered.
Definition: Renderer.h:349
SharedPtr< VertexBuffer > vertexBuffer_
UI vertex buffer.
Definition: UI.h:259
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Texture2DArray.cpp:66
float GetStartScale() const
Get vertex blended scale for start of trail.
Definition: RibbonTrail.h:143
HashSet< Pair< StringHash, StringHash > > dependents_
Resources that depend on this resource's loading.
Definition: BackgroundLoader.h:47
void AddSphere(const Sphere &sphere, const Color &color, bool depthTest=true)
Add a sphere.
Definition: DebugRenderer.cpp:260
bool looping_
Looping.
Definition: SpriterInstance2D.h:101
IntRect clipBorder_
Child element clipping border.
Definition: UIElement.h:684
unsigned checksum_
Checksum.
Definition: Connection.h:82
Quaternion GetWorldRotation() const
Return rotation in world space.
Definition: Node.h:423
Variant(const Matrix3x4 &value)
Construct from a Matrix3x4.
Definition: Variant.h:505
EmitterType2D
2D particle emitter types.
Definition: ParticleEffect2D.h:37
unsigned readBuffers_
Read buffer bits.
Definition: OGLGraphicsImpl.h:93
float GetLength() const
Return animation length.
Definition: Animation.h:166
void SetNumGeometries(unsigned num)
Set number of geometries.
Definition: Model.cpp:542
Rect uv_
UV coordinates.
Definition: BillboardSet.h:45
void OnNodeSet(Node *node) override
Handle component being added to Node or removed from it.
Definition: UIComponent.cpp:198
float radius_
Radius.
Definition: CollisionCircle2D.h:65
Intersection IsInside(const IntRect &rect) const
Test if another rect is inside, outside or intersects.
Definition: Rect.h:418
void SetAngle(float angle)
Set angle.
Definition: ParticleEffect2D.cpp:329
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticSprite2D.cpp:278
WeakPtr< LuaScriptInstance > instance_
Lua script instance.
Definition: LuaScriptEventInvoker.h:54
StringVector tags_
Tag list.
Definition: UIElement.h:821
SharedPtr< PropertySet2D > propertySet_
Property set.
Definition: TmxFile2D.h:87
bool SetIntVector3(const String &name, const IntVector3 &value)
Set an IntVector3 attribute.
Definition: XMLElement.cpp:392
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Constraint.cpp:138
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix4.h:512
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: LuaScriptInstance.cpp:284
static void RegisterObject(Context *context)
Register object factory.
Definition: ParticleEffect.cpp:96
Billboard * GetBillboard(unsigned index)
Return billboard by index.
Definition: BillboardSet.cpp:357
unsigned boundUBO_
Currently bound uniform buffer object.
Definition: OGLGraphicsImpl.h:130
void Push(T &&value)
Move-add an element at the end.
Definition: Vector.h:253
~Texture2D() override
Destruct.
Definition: Texture2D.cpp:50
void HandleEndFrame(StringHash eventType, VariantMap &eventData)
Handle end of frame. Clear debug geometry.
Definition: DebugRenderer.cpp:651
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Texture2D.cpp:60
void ResetToDefault()
Reset all editable attributes to their default values.
Definition: Serializable.cpp:650
~JSONFile() override
Destruct.
String vertexShaderDefines_
Vertex shader defines.
Definition: Technique.h:170
Color clearColor_
Clear color. Affects clear command only.
Definition: RenderPath.h:168
Vector< Variant > currentValues_
Current network attribute values.
Definition: ReplicationState.h:126
void AddConstraint2D(Constraint2D *constraint)
Add constraint.
Definition: RigidBody2D.cpp:489
void SetLoop(unsigned repeatOffset, unsigned endOffset)
Define loop.
Definition: Sound.cpp:271
void Swap(HashBase &rhs)
Swap with another hash set or map.
Definition: HashBase.h:118
Font(Context *context)
Construct.
Definition: Font.cpp:54
const int * Data() const
Return integer data.
Definition: Vector3.h:147
const Vector< AttributeInfo > * GetAttributes() const override
Return attribute descriptions, or null if none defined.
Definition: ScriptInstance.h:78
String vertexShaderName_
Vertex shader name.
Definition: RenderPath.h:150
unsigned maxFps_
Maximum frames per second.
Definition: Engine.h:140
bool selectOnClickEnd_
React to click end instead of click start flag.
Definition: ListView.h:184
IKConstraint(Context *context)
Constructs a new IK constraint.
Definition: IKConstraint.cpp:38
bool isRouting_
Resource routing flag to prevent endless recursion.
Definition: ResourceCache.h:254
void CheckMaterialForAuxView(Material *material)
Check if material should render an auxiliary view (if it has a camera attached).
Definition: View.cpp:2847
float x_
X coordinate.
Definition: Vector4.h:225
T & GetValue()
Get value.
Definition: Variant.h:237
void BeginInterval()
Begin a new interval.
Definition: Profiler.cpp:66
void OnPackagesReady()
Handle all packages loaded successfully. Also called directly on MSG_LOADSCENE if there are none.
Definition: Connection.cpp:1593
void UpdateNodeIDs() const
Update node IDs attribute from the actual nodes.
Definition: StaticModelGroup.cpp:403
void SetAlphaToCoverage(bool enable)
Set alpha-to-coverage mode on all passes.
Definition: Material.cpp:1095
virtual void Update(float timeStep)
Update the sound source. Perform subclass specific operations. Called by Audio.
Definition: SoundSource.cpp:329
Sprite2D * GetTileSprite(unsigned gid) const
Return tile sprite by gid, if not exist return 0.
Definition: TmxFile2D.cpp:555
float agentMaxSlope_
Navigation agent max slope.
Definition: NavigationMesh.h:324
StringHash animationNameHash_
Animation name hash.
Definition: Animation.h:195
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Text3D.cpp:115
float GetBrake(int wheel) const
Get hand brake value.
Definition: RaycastVehicle.cpp:588
Hash set node.
Definition: HashSet.h:39
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: ScriptInstance.cpp:532
void Define(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2)
Define from 3 vertices.
Definition: Plane.h:65
~Texture() override
Destruct.
void SetShadowed(bool enable)
Enable shadowing in CPU memory. Shadowing is forced on if the graphics subsystem does not exist.
Definition: IndexBuffer.cpp:59
float GetDetailSampleDistance() const
Return detail sampling distance.
Definition: NavigationMesh.h:231
char & At(unsigned index)
Return char at index.
Definition: Str.h:316
void SetNetBillboardsAttr(const PODVector< unsigned char > &value)
Set billboards attribute for network replication.
Definition: BillboardSet.cpp:407
Quaternion rotation_
Observer rotation for interest management.
Definition: Connection.h:325
void SetHeight(float height)
Set the agent's height.
Definition: CrowdAgent.cpp:409
ConstIterator Begin() const
Return const iterator to the beginning.
Definition: Vector.h:1122
bool updateQueued_
Octree update queued flag.
Definition: Drawable.h:345
VariantVector GetBonesEnabledAttr() const
Return bones' animation enabled attribute.
Definition: AnimatedModel.cpp:867
void SetTextureFilterMode(TextureFilterMode mode)
Set default texture filtering.
Definition: Renderer.cpp:326
PODVector< int > GetMultiSampleLevels() const
Return supported multisampling levels.
Definition: OGLGraphics.cpp:2048
AttributeHandle & SetMetadata(StringHash key, const Variant &value)
Set metadata.
Definition: Attribute.h:134
void SetAutoRemoveMode(AutoRemoveMode mode)
Set to remove either the sound source component or its owner node from the scene automatically on sou...
Definition: SoundSource.cpp:308
unsigned GetRowDataSize(int width) const
Return data size in bytes for a pixel or block row.
Definition: OGLTexture.cpp:190
Billboard component.
Definition: BillboardSet.h:61
void MixStereoToMonoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix stereo sample to mono buffer interpolated.
Definition: SoundSource.cpp:1076
float Angle() const
Return rotation angle.
Definition: Quaternion.cpp:229
float cursorBlinkTimer_
Cursor blink timer.
Definition: LineEdit.h:146
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector3.h:463
bool Link()
Link the shaders and examine the uniforms and samplers used. Return true if successful.
Definition: OGLShaderProgram.cpp:116
void SetEnableMotor(bool enableMotor)
Set enable motor.
Definition: ConstraintPrismatic2D.cpp:129
Vector2 otherBodyAnchor_
Other body anchor.
Definition: ConstraintDistance2D.h:77
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Constraint2D.cpp:163
void SetDrawOrder(int drawOrder)
Set draw order.
Definition: TileMapLayer2D.cpp:217
float radialAcceleration_
Radial acceleration.
Definition: ParticleEffect2D.h:278
unsigned char timeStamp_
Controls timestamp. Incremented after each sent update.
Definition: Connection.h:252
float GetDerivedOpacity() const
Return derived opacity (affected by parent elements). If UseDerivedOpacity is false,...
Definition: UIElement.cpp:1519
BatchQueue * batchQueue_
Batch queue.
Definition: View.h:91
unsigned char renderOrder_
8-bit render order modifier from material.
Definition: Batch.h:82
Vector4 Lerp(const Vector4 &rhs, float t) const
Linear interpolation with another vector.
Definition: Vector4.h:186
Ray GetScreenRay(int x, int y) const
Return ray corresponding to normalized screen coordinates.
Definition: Viewport.cpp:142
Intersection IsInside(const Vector3 &point) const
Test if a point is inside.
Definition: BoundingBox.h:280
void RemoveItem(UIElement *item)
Remove specific item.
Definition: DropDownList.cpp:168
virtual void RemoveAllTiles()
Remove all tiles from navigation mesh.
Definition: NavigationMesh.cpp:588
~Condition()
Destruct.
Definition: Condition.cpp:70
void ReleaseRef()
Release the array reference and delete it and the RefCount structure if necessary.
Definition: ArrayPtr.h:188
void UnsubscribeFromScriptMethodEvents()
Unsubscribe from script method events.
Definition: LuaScriptInstance.cpp:642
bool IsInf() const
Return whether any component is Inf.
Definition: Vector2.h:331
bool forceAnimationUpdate_
Force animation update after becoming visible flag.
Definition: AnimatedModel.h:261
const PODVector< SoundSource * > & GetSoundSources() const
Return all sound sources.
Definition: Audio.h:99
Vector2 uv_
UV.
Definition: Drawable2D.h:44
bool IsApplyingTransforms() const
Return whether node dirtying should be disregarded.
Definition: PhysicsWorld.h:281
void HandleLogMessage(StringHash eventType, VariantMap &eventData)
Handle log message.
Definition: Application.cpp:124
void RemoveListener(Component *component)
Remove listener component.
Definition: Node.cpp:1170
static const IntVector3 RIGHT_UP_FORWARD
(0, 1, 2) coordinate system (default).
Definition: RaycastVehicle.h:172
static unsigned lightPassIndex
Index for per-pixel light pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:268
void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag begin.
Definition: Window.cpp:129
bool SplitRect(unsigned freeAreaIndex, const IntRect &reserve)
Remove space from a free rectangle. Return true if the original rectangle should be erased from the f...
Definition: AreaAllocator.cpp:164
float minAngle_
Minimal angle between text normal and look-at direction.
Definition: Text3D.h:206
bool OpenInternal(const String &fileName, FileMode mode, bool fromPackage=false)
Open file internally using either C standard IO functions or SDL RWops for Android asset files....
Definition: File.cpp:428
PODVector< DebugTriangle > noDepthTriangles_
Triangles rendered without depth test.
Definition: DebugRenderer.h:182
RefCount * refCount_
Pointer to the RefCount structure.
Definition: ArrayPtr.h:428
Vector3 ViewportTransform(const Vector4 &vertex) const
Apply projection and viewport transform to vertex.
Definition: OcclusionBuffer.cpp:553
float rotation_
Rotation angle.
Definition: Sprite.h:118
AttributeInfo()=default
Construct empty.
void Resize(unsigned newSize, const T &value)
Resize the vector and fill new elements with default value.
Definition: Vector.h:1056
void SetControlPointIdsAttr(const VariantVector &value)
Set Control Point Node IDs attribute.
Definition: SplinePath.cpp:242
T & EmplaceBack(Args &&... args)
Create an element at the end.
Definition: Vector.h:222
const Vector< UIElement * > GetDragElements()
Return currently dragged elements.
Definition: UI.cpp:885
Iterator Find(const T &value)
Return iterator to value, or to the end if not found.
Definition: List.h:372
const String & GetName() const override
Return the file name.
Definition: File.h:84
void ProcessLoadScene(int msgID, MemoryBuffer &msg)
Process a LoadScene message from the server. Called by Network.
Definition: Connection.cpp:528
String GetShadowVariations() const
Find variations for shadow shaders.
Definition: Renderer.cpp:1912
unsigned ibRef_
Index buffer ref.
Definition: Model.h:100
ListBase()
Construct.
Definition: ListBase.h:97
IntVector2 customSize_
Root element custom size. 0,0 for automatic resizing (default).
Definition: UI.h:439
virtual void AddReplicationState(NodeReplicationState *state)
Add a replication state that is tracking this node.
Definition: Node.cpp:293
long long frameMaxTime_
Maximum time on the previous frame.
Definition: Profiler.h:154
unsigned ToUIntArgb() const
Return color packed to a 32-bit integer, with B component in the lowest 8 bits. Components are clampe...
Definition: Color.h:250
bool GetTileFlipY() const
Return tile flip Y.
Definition: TileMapDefs2D.h:195
void SetBool(bool value)
Set boolean.
Definition: PListFile.cpp:135
unsigned shadowCasterBegin_[MAX_LIGHT_SPLITS]
Shadow caster start indices.
Definition: View.h:66
unsigned numLodLevels_
Number of terrain LOD levels.
Definition: Terrain.h:285
static XPathQuery styleXPathQuery_
XPath query for selecting UI-style.
Definition: UIElement.h:819
BorderImage * GetKnob() const
Return knob element.
Definition: ProgressBar.h:72
void HandlePathChanged(StringHash eventType, VariantMap &eventData)
Handle path edited.
Definition: FileSelector.cpp:394
double numberValue_
Number value.
Definition: JSONValue.h:301
Timer dragBeginTimer
Timer used to trigger drag begin event.
Definition: UI.h:241
VectorBuffer GetVectorBuffer() const
Return VectorBuffer containing the buffer or empty on type mismatch.
Definition: Variant.cpp:430
2D revolute constraint component.
Definition: ConstraintRevolute2D.h:31
void SetValueMap(const PListValueMap &valueMap)
Set value map.
Definition: PListFile.cpp:168
void ApplyOSCursorShape()
Apply pending OS cursor shape. Called by UI. No-op when the OS mouse pointer is not used.
Definition: Cursor.cpp:256
Cursor * GetCursor() const
Return cursor.
Definition: UI.h:141
void AddAttribute(const pugi::xml_node &patch, const pugi::xpath_node &original) const
Add an attribute in the Patch.
Definition: XMLFile.cpp:347
void SetWidth(int width)
Set width only.
Definition: UIElement.cpp:593
ResourceCache(Context *context)
Construct.
Definition: ResourceCache.cpp:70
void CreateConstraint()
Create the constraint.
Definition: Constraint.cpp:458
virtual const Vector< AttributeInfo > * GetNetworkAttributes() const
Return network replication attribute descriptions, or null if none defined.
Definition: Serializable.cpp:288
Particle effect definition.
Definition: ParticleEffect.h:108
Hash set node iterator.
Definition: HashSet.h:64
void Open(const String &fileName)
Open the log file.
Definition: Log.cpp:82
bool markToStencil_
Mark to stencil flag.
Definition: View.h:87
TextureUsage GetUsage() const
Return texture usage type.
Definition: Texture.h:133
unsigned numBatches_
Number of batches (3D geometry only).
Definition: Renderer.h:580
void ChangeValue(float delta)
Change value by a delta.
Definition: Slider.cpp:199
void OnDragEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor *cursor) override
React to mouse drag end.
Definition: Slider.cpp:150
int GetDepth() const
Return depth.
Definition: Texture.h:88
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: UIElement.cpp:291
void HandleLayoutUpdated(StringHash eventType, VariantMap &eventData)
Handle the element layout having been updated.
Definition: LineEdit.cpp:658
bool ExecuteFile(const String &fileName)
Execute script file. Return true if successful.
Definition: LuaScript.cpp:237
ResourceRef GetModelAttr() const
Return model attribute.
Definition: AnimatedModel.cpp:862
SplinePath(Context *context)
Construct an Empty SplinePath.
Definition: SplinePath.cpp:42
void RemoveAnimationState(AnimationState *state)
Remove an animation state.
Definition: AnimationController.cpp:863
HashMap< String, Vector< SharedPtr< DbConnection > > > connectionsPool_
Database connections pool.
Definition: Database.h:73
Camera * shadowCamera_
Shadow map camera.
Definition: Batch.h:280
int level_
Message level. -1 for raw messages.
Definition: Log.h:67
void HandleIncomingPacket(SLNet::Packet *packet, bool isServer)
All incoming packages are handled here.
Definition: Network.cpp:695
Matrix4(const Matrix3 &matrix) noexcept
Copy-construct from a 3x3 matrix and set the extra elements to identity.
Definition: Matrix4.h:100
Frustum & operator=(const Frustum &rhs) noexcept
Assign from another frustum.
Definition: Frustum.cpp:65
bool NeedParameterUpdate(ShaderParameterGroup group, const void *source)
Check whether a shader parameter group needs update. Does not actually check whether parameters exist...
Definition: OGLGraphics.cpp:1457
LegacyVertexElement
Hardcoded legacy vertex elements.
Definition: GraphicsDefs.h:134
const PODVector< unsigned char > & GetMorphsAttr() const
Return morphs attribute.
Definition: AnimatedModel.cpp:897
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: ParticleEffect2D.cpp:211
bool SetSubimage(const Image *image, const IntRect &rect)
Copy contents of the image into the defined rect, scaling if necessary. This image should already be ...
Definition: Image.cpp:2362
unsigned Tell() const
Return current position.
Definition: Deserializer.h:59
Timer useTimer_
Last used timer.
Definition: OcclusionBuffer.h:209
@ LT_IMAGE_LAYER
Image layer.
Definition: TileMapDefs2D.h:82
float screenScaleFactor_
Scale factor for fixed screen size mode. Used internally.
Definition: BillboardSet.h:57
void SetEndPoint(Node *node)
Set endpoint node.
Definition: OffMeshConnection.cpp:113
void SetOutputName(unsigned index, const String &name)
Set output rendertarget name.
Definition: RenderPath.cpp:266
void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag motion.
Definition: LineEdit.cpp:147
int numExtraInstancingBufferElements_
Number of extra instancing data elements.
Definition: Renderer.h:596
unsigned jsonIndex_
Current JSON child array and for JSON mode.
Definition: Scene.h:70
const float * Data() const
Return float data.
Definition: Matrix3x4.h:657
HashMap< unsigned short, unsigned short > materialRemapping_
Material remapping table for 2-pass state and distance sort.
Definition: Batch.h:252
StringHash nameHash_
Morph name hash.
Definition: Model.h:59
SharedPtr< File > file_
Destination file.
Definition: Connection.h:74
TerrainPatch * GetPatch(unsigned index) const
Return patch by index.
Definition: Terrain.cpp:528
float currentTime_
Current time.
Definition: ValueAnimationInfo.h:94
void RemoveAllTiles() override
Remove all tiles from navigation mesh.
Definition: DynamicNavigationMesh.cpp:578
bool Load(const XMLElement &element, const TileMapInfo2D &info)
Load from XML element.
Definition: TmxFile2D.cpp:340
String orientations_
Allowed screen orientations.
Definition: Graphics.h:861
void HandleDropFile(StringHash eventType, VariantMap &eventData)
Handle a file being drag-dropped into the application window.
Definition: UI.cpp:2059
void UpdateUIClickSubscription()
Update subscription to UI click events.
Definition: ListView.cpp:1157
void Clear()
Clear the string.
Definition: Str.cpp:478
~AnimationSet2D() override
Destruct.
Definition: AnimationSet2D.cpp:114
ConstIterator End() const
Return const iterator to the end.
Definition: Vector.h:500
float GetDownloadProgress() const
Return progress of current package download, or 1.0 if no downloads.
Definition: Connection.cpp:1141
ConstIterator End() const
Return iterator to the end.
Definition: HashMap.h:612
static void RegisterObject(Context *context)
Register object factory.
Definition: LineEdit.cpp:74
HashMap< unsigned, WeakPtr< Node > > nodes_
Nodes.
Definition: SceneResolver.h:54
void SetWordwrap(bool enable)
Set wordwrap. In wordwrap mode the text element will respect its current width. Otherwise it resizes ...
Definition: Text.cpp:329
bool EndLoadFromPListFile()
End load from PList file.
Definition: SpriteSheet2D.cpp:149
bool IsEnabled() const
Return whether is enabled.
Definition: Component.h:93
UniquePtr< dtTileCacheCompressor > compressor_
Used by dtTileCache to compress the original tiles to use when reconstructing for changes.
Definition: DynamicNavigationMesh.h:138
Vector3 NormalizedOrDefault(const Vector3 &defaultValue=Vector3::ZERO, float eps=M_LARGE_EPSILON) const
Return normalized to unit length or zero if length is too small.
Definition: Vector3.h:436
void PlayLockless(Sound *sound)
Play a sound without locking the audio mutex. Called internally.
Definition: SoundSource.cpp:511
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: Animatable.cpp:77
~Engine() override
Destruct. Free all subsystems.
HighlightMode highlightMode_
Highlight mode.
Definition: ListView.h:172
Text * GetTextElement() const
Return text element.
Definition: LineEdit.h:114
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: LineEdit.cpp:90
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Shader.cpp:84
static const ResourceRefList emptyResourceRefList
Empty resource reference list.
Definition: Variant.h:1387
void OnGetAttribute(const AttributeInfo &attr, Variant &dest) const override
Handle attribute read access.
Definition: ScriptInstance.cpp:148
bool IsUpdateEnabled() const
Return whether updates are enabled.
Definition: Scene.h:178
void SetMaterial(Material *material)
Set material on all geometries.
Definition: CustomGeometry.cpp:697
virtual Intersection TestOctant(const BoundingBox &box, bool inside)=0
Intersection test for an octant.
SoundListener(Context *context)
Construct.
Definition: SoundListener.cpp:33
bool FilterPopupImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: DropDownList.cpp:263
void SetWheelMaxSuspensionForce(int wheel, float force)
Set wheel max suspension force. Good results are often obtained by a value that is about 3x to 4x the...
Definition: RaycastVehicle.cpp:466
bool GetExecuteConsoleCommands() const
Return whether is executing engine console commands as script code.
Definition: LuaScript.h:96
Node * ReserveNode(const T &key)
Reserve a node with specified key.
Definition: HashSet.h:610
bool GetEnableMotor() const
Return enable motor.
Definition: ConstraintWheel2D.h:65
HashMap< asIScriptObject *, SharedPtr< ScriptEventInvoker > > eventInvokers_
Event helper objects for handling procedural or non-ScriptInstance script events.
Definition: ScriptFile.h:150
const IntVector2 & GetChildOffset() const
Return child element offset.
Definition: UIElement.h:448
const String & GetVertexShaderDefineExcludes() const
Return vertex shader define excludes.
Definition: Technique.h:126
const Vector2 & GetOtherBodyAnchor() const
Return other body anchor.
Definition: ConstraintDistance2D.h:58
@ JSON_NULL
JSON null type.
Definition: JSONValue.h:36
~Camera() override
Destruct.
unsigned Find(const String &str, unsigned startPos=0, bool caseSensitive=true) const
Return index to the first occurrence of a string, or NPOS if not found.
Definition: Str.cpp:594
Matrix3x4 ReadMatrix3x4()
Read a Matrix3x4.
Definition: Deserializer.cpp:219
bool IsZero() const
Return true when the variant value is considered zero according to its actual type.
Definition: Variant.cpp:523
float periodTimer_
Active/inactive period timer.
Definition: ParticleEmitter.h:138
void Update(float deltaTime)
Update animation.
Definition: SpriterInstance2D.cpp:125
void LoadParameters()
Load font glyph offset parameters from an optional XML file. Called internally when loading TrueType ...
Definition: Font.cpp:192
void SetInterceptNetworkUpdate(const String &attributeName, bool enable)
Enable interception of an attribute from network updates. Intercepted attributes are sent as events i...
Definition: Serializable.cpp:690
bool LoadValue(PListValue &value, const XMLElement &valueElem)
Load value.
Definition: PListFile.cpp:384
bool GetBones(Drawable *target, unsigned batchIndex, const float *blendWeights, const unsigned char *blendIndices, unsigned char *newBlendIndices)
Get bones referenced by skinning data and remap the skinning indices. Return true if successful.
Definition: DecalSet.cpp:884
String(char *str)
Construct from a C string.
Definition: Str.h:88
void Mix(int *dest, unsigned samples, int mixRate, bool stereo, bool interpolation)
Mix sound source output to a 32-bit clipping buffer. Called by Audio.
Definition: SoundSource.cpp:366
int baseIndent_
Base indent, used in hierarchy mode only.
Definition: ListView.h:178
Node * InsertNode(Node *dest, const T &key, const U &value)
Insert a node into the list. Return the new node.
Definition: HashMap.h:696
Node * GetNode() const
Return root scene node this state controls (node hierarchy mode).
Definition: AnimationState.cpp:379
void Define(const Skeleton &src)
Define from another skeleton.
Definition: Skeleton.cpp:103
bool HasModalElement() const
Return true when UI has modal element(s).
Definition: UI.cpp:933
WeakPtr< PhysicsWorld > physicsWorld_
Physics world.
Definition: Constraint.h:171
void UpdateTail(float timeStep)
Update/Rebuild tail mesh only if position changed (called by UpdateBatches()).
Definition: RibbonTrail.cpp:213
bool IsOccludee() const
Return occludee flag.
Definition: Drawable.h:216
String GetEffectiveVertexShaderDefines() const
Return the effective vertex shader defines, accounting for excludes. Called internally by Renderer.
Definition: Technique.cpp:184
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Ptr.h:659
bool IsAsyncLoading() const
Return whether an asynchronous loading operation is in progress.
Definition: Scene.h:181
void ReleaseMaterialShaders()
Release shaders used in materials.
Definition: Renderer.cpp:1741
Quaternion ReadQuaternion()
Read a quaternion.
Definition: Deserializer.cpp:196
void SetNumParticles(unsigned num)
Set maximum number of particles.
Definition: ParticleEffect.cpp:445
Pass * pass_
Material pass.
Definition: Batch.h:199
void SetTrigger(bool trigger)
Set trigger.
Definition: CollisionShape2D.cpp:81
const Vector3 & GetPosition() const
Return offset position.
Definition: CollisionShape.h:227
~Sound() override
Destruct and free sound data.
Light * GetFirstLight() const
Return the first added per-pixel light.
Definition: Drawable.h:281
bool Contains(const T &value) const
Return whether contains a specific value.
Definition: Vector.h:1116
void AddControlPoint(Node *point, unsigned index=M_MAX_UNSIGNED)
Add a Node to the SplinePath as a Control Point.
Definition: SplinePath.cpp:139
unsigned stencilCompareMask_
Stencil compare bitmask.
Definition: Graphics.h:837
bool GetCastShadows() const
Return shadowcaster flag.
Definition: Terrain.h:187
URHO_CPP14(constexpr) RandomAccessIterator< T > operator++(int)
Postincrement the pointer.
Definition: Iter.h:59
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: CrowdManager.cpp:109
void ProcessPackageDownload(int msgID, MemoryBuffer &msg)
Process package download related messages. Called by Network.
Definition: Connection.cpp:796
VariantVector GetVariantVector() const
Return a variant vector attribute, or empty if missing.
Definition: XMLElement.cpp:903
void RemoveAllDecals()
Remove all decals.
Definition: DecalSet.cpp:491
void GotoNext()
Go to the next node.
Definition: HashBase.h:79
void * GetUserData() const
Return userdata.
Definition: Object.h:283
HashMap< String, SharedPtr< XMLFile > > tsxXMLFiles_
TSX name to XML file mapping.
Definition: TmxFile2D.h:216
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: CustomGeometry.cpp:815
bool operator!=(const BatchGroupKey &rhs) const
Test for inequality with another batch group key.
Definition: Batch.h:215
bool GetDrawOffMeshConnections() const
Return whether to draw OffMeshConnection components.
Definition: NavigationMesh.h:269
void RemoveColorFrame(unsigned index)
Remove color frame at index.
Definition: ParticleEffect.cpp:621
unsigned GetElementOffset(VertexElementSemantic semantic, unsigned char index=0) const
Return offset of a element within vertex, or M_MAX_UNSIGNED if does not exist.
Definition: VertexBuffer.h:97
bool SetWindowModes(const WindowModeParams &windowMode, const WindowModeParams &secondaryWindowMode, bool maximize=false)
Definition: Graphics.cpp:111
Light component.
Definition: Light.h:150
const pugi::xpath_node * GetXPathNode() const
Return pugixml xpath_node.
Definition: XMLElement.h:294
Vector3 cachedWorldScale_
Cached world scale.
Definition: CollisionShape2D.h:116
unsigned GetVertexCount() const
Return number of vertices.
Definition: VertexBuffer.h:76
~HttpRequest() override
Destruct. Release the connection object.
Definition: HttpRequest.cpp:73
const IntVector2 & GetMaxSize() const
Return maximum size.
Definition: UIElement.h:430
~Component() override
Destruct.
Material * GetDefaultMaterial() const
Return the default material.
Definition: Renderer.h:364
Orientation orientation_
Orientation.
Definition: Slider.h:104
int GetNonThreadedWorkMs() const
Return how many milliseconds maximum to spend on non-threaded low-priority work.
Definition: WorkQueue.h:115
void SetSpecularIntensity(float intensity)
Set specular intensity. Zero disables specular calculations.
Definition: Light.cpp:314
bool forceAutoHint_
Flag for forcing FreeType auto hinting.
Definition: UI.h:405
bool IsUpdateEnabled() const
Return whether physics world will automatically simulate during scene update.
Definition: PhysicsWorld.h:224
bool IsInside(IntVector2 position, bool isScreen)
Return whether a point (either in element or screen coordinates) is inside the element.
Definition: UIElement.cpp:1742
virtual Geometry * GetLodGeometry(unsigned batchIndex, unsigned level)
Return the geometry for a specific LOD level.
Definition: Drawable.cpp:153
SharedPtr< ParticleEffect2D > Clone(const String &cloneName=String::EMPTY) const
Clone the 2D particle effect.
Definition: ParticleEffect2D.cpp:474
unsigned char layer_
Blending layer.
Definition: AnimationState.h:175
bool historyOrAutoCompleteChange_
Internal flag whether currently in an autocomplete or history change.
Definition: Console.h:193
SharedPtr< Geometry > geometry_
Geometry.
Definition: DecalSet.h:219
@ BEZIER_CURVE
Bezier interpolation.
Definition: Spline.h:39
~VariantValue()
Destruct.
Definition: Variant.h:318
void SetQueueShaderDefines(BatchQueue &queue, const RenderPathCommand &command)
Set shader defines for a batch queue if used.
Definition: View.cpp:2881
Vector4 GetVector4(const String &name) const
Return a Vector4 attribute, or zero vector if missing.
Definition: XMLElement.cpp:960
void SetDiscoveryBeacon(const VariantMap &data)
Set the data that will be used for a reply to attempts at host discovery on LAN/subnet.
Definition: Network.cpp:342
HashMap & Populate(const T &key, const U &value, const Args &... args)
Populate the map using variadic template.
Definition: HashMap.h:362
bool hasLoaded_
Has loaded.
Definition: LuaFile.h:62
void SetUseDrawRect(bool useDrawRect)
Set whether to use custom-defined draw rectangle.
Definition: StaticSprite2D.cpp:188
void SetFeature(Feature feature, bool enable)
Enable or disable a certain feature (see IKEffector::Feature).
Definition: IKEffector.cpp:217
float GetLodBias() const
Return LOD bias.
Definition: Camera.h:128
bool GetContinuousPhysics() const
Return continuous physics.
Definition: PhysicsWorld2D.cpp:690
unsigned Seek(unsigned position) override
Set position. No-op for pipes.
Definition: NamedPipe.cpp:75
void AdjustOtherBodyPosition()
Adjust other body position.
Definition: Constraint.cpp:580
bool etcTextureSupport_
ETC1 format support flag.
Definition: Graphics.h:747
Base class for per-user network replication states.
Definition: ReplicationState.h:138
View3D(Context *context)
Construct.
Definition: View3D.cpp:42
Node * GetParent() const
Return parent scene node.
Definition: Node.h:359
float GetAutoFade(const String &name) const
Return animation autofade time.
Definition: AnimationController.cpp:555
TextureCube * GetIndirectionCubeMap() const
Return the shadowed pointlight indirection cube map.
Definition: Renderer.h:376
Vector3 v3_
Vertex c.
Definition: DebugRenderer.h:85
Matrix3x4 offsetMatrix_
Offset matrix.
Definition: Skeleton.h:72
void SetAddressOrGUID(const SLNet::AddressOrGUID &addr)
Set the the RakNet address/guid.
Definition: Connection.cpp:1660
Color color_
Color.
Definition: ParticleEffect.h:80
Variant ReadVariant()
Read a variant.
Definition: Deserializer.cpp:302
const ModelMorph * GetMorph(unsigned index) const
Return vertex morph by index.
Definition: Model.cpp:752
Vector< LightQueryResult > lightQueryResults_
Intermediate light processing results.
Definition: View.h:411
float distance_
Distance from camera.
Definition: Batch.h:80
~ConstraintWeld2D() override
Destruct.
UpdateEventFlags updateEventMask_
Requested event subscription mask.
Definition: LogicComponent.h:108
Bone timeline key.
Definition: SpriterData2D.h:275
void SendClickEvent(StringHash eventType, UIElement *beginElement, UIElement *endElement, const IntVector2 &pos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers)
Send a UI click event.
Definition: UI.cpp:1696
float GetDensity() const
Return density.
Definition: CollisionShape2D.h:83
dtTileCachePolyMesh * polyMesh_
TileCache specific recast poly mesh.
Definition: NavBuildData.h:112
Feature
Definition: IKSolver.h:59
void CreateGeometry()
Regenerate terrain geometry.
Definition: Terrain.cpp:848
int GetSimulatedLatency() const
Return simulated latency in milliseconds.
Definition: Network.h:111
Frustum frustum_
View frustum.
Definition: DebugRenderer.h:190
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: DebugRenderer.h:192
void StaticCast(const WeakPtr< U > &rhs)
Perform a static cast from a weak pointer of another type.
Definition: Ptr.h:456
HashMap< int, Vector< SharedPtr< Texture2D > > > shadowMaps_
Shadow maps by resolution.
Definition: Renderer.h:504
2D rope constraint component.
Definition: ConstraintRope2D.h:31
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionBox2D.cpp:105
void SetFadeDistance(float distance)
Set fade out start distance.
Definition: Light.cpp:359
BlendMode GetBlendMode() const
Return blend mode.
Definition: Sprite.h:101
void SetLightVolumeBatchShaders(Batch &batch, Camera *camera, const String &vsName, const String &psName, const String &vsDefines, const String &psDefines)
Choose shaders for a deferred light volume batch.
Definition: Renderer.cpp:1277
const String & GetLinkerOutput() const
Return linker output.
Definition: OGLShaderProgram.h:68
void SetHotSpot(const Vector2 &hotSpot)
Set hot spot.
Definition: Sprite2D.cpp:123
DecalSet(Context *context)
Construct.
Definition: DecalSet.cpp:154
Matrix4 gpuProjection_
Projection transform in API-specific format.
Definition: DebugRenderer.h:188
LineEdit * GetLineEdit() const
Return the line edit element.
Definition: Console.h:87
UIElement * buttonLayout_
Button layout.
Definition: FileSelector.h:177
Color ReadColor()
Read a color.
Definition: Deserializer.cpp:233
float rotation_
Rotation.
Definition: ParticleEmitter2D.h:46
DebugRenderer * debugRenderer_
Debug renderer.
Definition: PhysicsWorld2D.h:231
unsigned maxLength_
Maximum text length.
Definition: LineEdit.h:148
void DumpMemory()
Dump information of all memory allocations to the log. Supported in MSVC debug mode only.
Definition: Engine.cpp:644
const T * Cast() const
Cast the object to specified most derived class.
Definition: Object.h:111
bool SetVariable(const String &name, bool value)
Add/Set a bool variable. Return true if successful.
Definition: XMLElement.cpp:1076
Text text_
Internally used text element.
Definition: Text3D.h:190
Stores files of a directory tree sequentially for convenient access.
Definition: PackageFile.h:42
void ApplySceneToActivePose()
Definition: IKSolver.cpp:477
void Update(float timeStep)
Update for rendering. Called by HandleRenderUpdate().
Definition: Renderer.cpp:647
bool textCopyable_
Copy-paste enable flag.
Definition: LineEdit.h:156
void DrawPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a closed polygon provided in CCW order.
Definition: PhysicsWorld2D.cpp:189
void UpdateDrawRect()
Update drawRect.
Definition: StaticSprite2D.cpp:361
void AddEventHandler(const String &eventName, int functionIndex) override
Add a scripted event handler by function.
Definition: LuaScriptInstance.cpp:299
@ ASYNC_SUCCESS
BeginLoad() succeeded. EndLoad() can be called in the main thread.
Definition: Resource.h:48
void RaycastSingleSegmented(PhysicsRaycastResult &result, const Ray &ray, float maxDistance, float segmentDistance, unsigned collisionMask=M_MAX_UNSIGNED, float overlapDistance=0.1f)
Definition: PhysicsWorld.cpp:432
ShaderVariation * GetShader(ShaderType type, const String &name, const String &defines=String::EMPTY) const
Return a shader variation by name and defines.
Definition: OGLGraphics.cpp:2124
void SetAttributeAnimationTime(const String &name, float time)
Set attribute animation time position manually. Automatic update should be disabled in this case.
Definition: Animatable.cpp:406
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticModel.cpp:400
void HandleSceneUpdate(StringHash eventType, VariantMap &eventData)
Handle scene update event.
Definition: LogicComponent.cpp:169
FlagSet operator|(const Enum value) const
Bitwise OR against Enum value.
Definition: FlagSet.h:130
unsigned short GetBufferHash() const
Return buffers' combined hash value for state sorting.
Definition: Geometry.cpp:196
void SetBrake(int wheel, float force)
Set hand brake (wheel rotation blocking force).
Definition: RaycastVehicle.cpp:582
void SetBorder(const IntRect &rect)
Set border dimensions on the screen.
Definition: BorderImage.cpp:97
void RemoveAllKeyFrames()
Remove all keyframes.
Definition: Animation.cpp:82
const String & GetAppliedStyle() const
Return applied style name. Return an empty string when the applied style is an 'auto' style (i....
Definition: UIElement.cpp:1574
static void RegisterObject(Context *context)
Register object factory.
Definition: Material.cpp:206
RefCount * RefCountPtr() const
Return pointer to the RefCount structure.
Definition: ArrayPtr.h:168
bool geometriesUpdated_
Geometries updated flag.
Definition: View.h:368
void MergeBuffers()
Merge thread work buffers into the first buffer.
Definition: OcclusionBuffer.cpp:1004
Vector2 texCoord_
Texture coordinates.
Definition: DecalSet.h:66
bool LoadAsync(File *file, LoadMode mode=LOAD_SCENE_AND_RESOURCES)
Load from a binary file asynchronously. Return true if started successfully. The LOAD_RESOURCES_ONLY ...
Definition: Scene.cpp:309
Vector2 projectionOffset_
Projection offset.
Definition: Camera.h:268
float GetFriction() const
Return friction.
Definition: CollisionShape2D.h:86
Camera * GetShadowCamera()
Allocate a temporary shadow camera and a scene node for it. Is thread-safe.
Definition: Renderer.cpp:1123
SharedPtr< Material > material_
Material.
Definition: ParticleEffect.h:359
unsigned GetID() const
Return ID.
Definition: Node.h:342
Material * GetMaterial(Texture2D *texture, BlendMode blendMode)
Return material by texture and blend mode.
Definition: Renderer2D.cpp:243
ResourceRefList(StringHash type, const StringVector &names)
Construct with type and id list.
Definition: Variant.h:149
void SetEnableMotor(bool enableMotor)
Set enable motor.
Definition: ConstraintWheel2D.cpp:84
static bool Compare(const T &lhs, const T &rhs)
Compare types.
Definition: Variant.h:217
RefCount * RefCountPtr() const
Return pointer to the RefCount structure.
Definition: Ptr.h:217
bool HasMethod(const String &declaration) const
Check if has a method.
Definition: ScriptInstance.cpp:431
void SetFilterMode(TextureFilterMode mode)
Set filtering mode.
Definition: Texture.cpp:74
TrailPoint * next_
Next point to make a tail.
Definition: RibbonTrail.h:57
bool GetFlipVertical() const
Return vertical flipping mode.
Definition: Camera.h:188
int dragBeginDistance_
Drag begin event distance threshold in pixels.
Definition: UI.h:383
const Matrix4 & GetMatrix4() const
Return a Matrix4 or identity on type mismatch.
Definition: Variant.h:1286
unsigned indexCount_
Number of indices.
Definition: IndexBuffer.h:101
Vector< Node * > wheelNodes_
Nodes of all wheels.
Definition: RaycastVehicle.h:194
SharedArrayPtr< int > dataWithSafety_
Full buffer data with safety padding.
Definition: OcclusionBuffer.h:57
void SetTolerance(float tolerance)
Sets the distance at which the effector is "close enough" to the target node, at which point the algo...
Definition: IKSolver.cpp:211
void PrecacheShaders(Deserializer &source)
Precache shader variations from an XML file generated with BeginDumpShaders().
Definition: Graphics.cpp:371
void ApplyAnimation()
Apply all animation states to nodes.
Definition: AnimatedModel.cpp:1276
const PODVector< unsigned char > & GetBuffer() const
Return buffer or empty on type mismatch.
Definition: Variant.h:1200
float GetFarDistance() const
Return far distance.
Definition: SoundSource3D.h:69
void UpdatePlanes()
Update the planes. Called internally.
Definition: Frustum.cpp:225
void SetModalAutoDismiss(bool enable)
Set whether model window can be dismissed with the escape key. Default true.
Definition: Window.cpp:315
static void RegisterObject(Context *context)
Register object factory.
Definition: LuaScriptInstance.cpp:81
UniquePtr< Spriter::SpriterInstance > spriterInstance_
Spriter instance.
Definition: AnimatedSprite2D.h:148
void SetExcludeFlags(unsigned queryFilterType, unsigned short flags)
Set the exclude flags for the specified query filter type.
Definition: CrowdManager.cpp:323
LoadMode
Asynchronous scene loading mode.
Definition: Scene.h:46
void GetVector3MinMax(const XMLElement &element, Vector3 &minValue, Vector3 &maxValue)
Read a Vector3 from an XML element.
Definition: ParticleEffect.cpp:851
Vector3 FindNearestPoint(const Vector3 &point, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, dtPolyRef *nearestRef=nullptr)
Find the nearest point on the navigation mesh to a given point. Extents specifies how far out from th...
Definition: NavigationMesh.cpp:607
float projOffsetScaleX_
Combined X projection and viewport transform.
Definition: OcclusionBuffer.h:223
void SetHeightFog(bool enable)
Set height fog mode.
Definition: Zone.cpp:160
bool WriteInt64(long long value)
Write a 64-bit integer.
Definition: Serializer.cpp:36
float GetFloat(const String &name) const
Return a float attribute, or zero if missing.
Definition: XMLElement.cpp:792
void SetElementRenderTexture(UIElement *element, Texture2D *texture)
Set texture to which element will be rendered.
Definition: UI.cpp:2187
const Vector3 & GetGravityOverride() const
Return gravity override. If zero (default), uses the physics world's gravity.
Definition: RigidBody.h:205
float GetWidth() const
Get width of the trail.
Definition: RibbonTrail.h:134
SharedPtr< Image > SaveFaceTexture(Texture2D *texture)
Save font face texture as image resource.
Definition: FontFaceBitmap.cpp:356
const TmxObjectGroup2D * objectGroup_
Object group.
Definition: TileMapLayer2D.h:119
void SetDefaultRenderPath(RenderPath *renderPath)
Set default renderpath.
Definition: Renderer.cpp:293
bool GetDepthWrite() const
Return whether depth write is enabled.
Definition: Graphics.h:522
String name_
Name.
Definition: TmxFile2D.h:79
DecalVertex()=default
Construct with defaults.
void CreatePatchGeometry(TerrainPatch *patch)
Regenerate patch geometry.
Definition: Terrain.cpp:651
Intersection IsInsideFast(const Sphere &sphere) const
Test if a sphere if (partially) inside or outside.
Definition: Frustum.h:111
bool IsNull() const
Check is null.
Definition: JSONValue.h:179
SharedPtr< Material > material_
Material.
Definition: Terrain.h:253
float specularIntensity_
Specular intensity.
Definition: Light.h:371
float GetOuterAngle() const
Return outer angle in degrees.
Definition: SoundSource3D.h:75
Timeline key.
Definition: SpriterData2D.h:224
~ConstraintRope2D() override
Destruct.
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle begin frame event to check for completed async executions.
Definition: FileSystem.cpp:904
void * renderTargetView_
Direct3D11 rendertarget or depth-stencil view.
Definition: RenderSurface.h:134
Vector3 Lerp(const Vector3 &rhs, float t) const
Linear interpolation with another vector.
Definition: Vector3.h:405
bool IsPowerOfTwo(unsigned value)
Check whether an unsigned integer is a power of two.
Definition: MathDefs.h:234
Hardware vertex buffer.
Definition: VertexBuffer.h:34
PODVector< OffMeshConnection * > CollectOffMeshConnections(const BoundingBox &bounds)
Off-mesh connections to be rebuilt in the mesh processor.
Definition: DynamicNavigationMesh.cpp:1039
bool IsPlaying(const String &name) const
Return whether an animation is active. Note that non-looping animations that are being clamped at the...
Definition: AnimationController.cpp:429
unsigned long long GetElementHash() const
Return vertex element hash.
Definition: ShaderVariation.h:123
static View * GetActualView(View *view)
Return a view or its source view if it uses one. Used internally for render statistics.
Definition: Renderer.cpp:1154
static int AtPanic(lua_State *L)
At panic.
Definition: LuaScript.cpp:347
bool IsPackaged() const
Return whether the file originates from a package.
Definition: File.h:110
void SetUseSystemShapes(bool enable)
Set whether to use system default shapes. Is only possible when the OS mouse cursor has been set visi...
Definition: Cursor.cpp:205
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: StaticModelGroup.cpp:169
void UnmapBuffer()
Unmap the GPU buffer. Not used on OpenGL.
Definition: OGLVertexBuffer.cpp:274
bool selected_
Selected flag.
Definition: UIElement.h:708
SharedPtr< Button > closeButton_
Close button.
Definition: Console.h:155
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: Texture2DArray.h:94
Variant(const Vector3 &value)
Construct from a Vector3.
Definition: Variant.h:385
Node(const T &value)
Construct with value.
Definition: List.h:42
UIElement * GetRoot() const
Return UIElement.
Definition: UIComponent.cpp:183
void DoAutoRemove(AutoRemoveMode mode)
Perform autoremove. Called by subclasses. Caller should keep a weak pointer to itself to check whethe...
Definition: Component.cpp:309
bool FromString(const String &source)
Deserialize from a string. Return true if successful.
Definition: JSONFile.cpp:232
Mutex mutex_
Mutex for synchronizing the worker and the main thread.
Definition: HttpRequest.h:97
bool WriteVector4(const Vector4 &value)
Write a Vector4.
Definition: Serializer.cpp:132
const Matrix3x4 * worldTransform_
World transform.
Definition: Batch.h:126
XPath query.
Definition: XMLElement.h:354
String className_
Class name.
Definition: ScriptInstance.h:198
void SetIndentSpacing(int indentSpacing)
Set indent spacing (number of pixels per indentation level).
Definition: UIElement.cpp:1086
auto Average(Iterator begin, Iterator end) -> typename std::decay< decltype(*begin)>::type
Compute average value of the range.
Definition: MathDefs.h:197
static bool HasParameter(const VariantMap ¶meters, const String ¶meter)
Return whether startup parameters contains a specific parameter.
Definition: Engine.cpp:962
bool IsStereo() const
Return whether data is stereo.
Definition: SoundStream.h:66
float GetFrequency() const
Return default frequency as a float.
Definition: SoundStream.h:54
void BindStencilAttachment(unsigned object, bool isRenderBuffer)
Bind a framebuffer stencil attachment using either extension or core functionality....
Definition: OGLGraphics.cpp:3333
void HandleUpdate(StringHash eventType, VariantMap &eventData)
Handle the logic update event to update the scene, if active.
Definition: Scene.cpp:1164
void SetApplyingTransforms(bool enable)
Set node dirtying to be disregarded.
Definition: PhysicsWorld.h:278
float GetSimulatedPacketLoss() const
Return simulated packet loss probability.
Definition: Network.h:114
SharedPtr< Material > material_
Material.
Definition: Drawable2D.h:60
void AddVertexLight(Light *light)
Add a per-vertex light affecting the object this frame.
Definition: Drawable.h:302
Vector< String > Split(char separator, bool keepEmptyStrings=false) const
Return substrings split by a separator char. By default don't return empty strings.
Definition: Str.cpp:561
void FindScriptObjectMethodRefs()
Find script object method refs.
Definition: LuaScriptInstance.cpp:609
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: ListView.cpp:206
EmitterType2D emitterType_
Emitter type.
Definition: ParticleEffect2D.h:306
bool SetFontSize(float size)
Set font size only while retaining the existing font. Return true if successful.
Definition: Text.cpp:277
XMLElement operator[](unsigned index) const
Definition: XMLElement.cpp:1036
unsigned index_
Octant index relative to its siblings or ROOT_INDEX for root octant.
Definition: Octree.h:156
float sizeAdd_
Particle size additive parameter.
Definition: ParticleEffect.h:415
String ToString() const
Return as string.
Definition: Quaternion.cpp:325
void SetWheelFrictionSlip(int wheel, float slip)
Set wheel friction slip.
Definition: RaycastVehicle.cpp:508
bool CheckAccess(const String &pathName) const
Check if a path is allowed to be accessed. If no paths are registered, all are allowed.
Definition: FileSystem.cpp:550
HashNodeBase * prev_
Previous node.
Definition: HashBase.h:52
void SetSpriteAttr(const ResourceRef &value)
Set sprite attribute.
Definition: ParticleEmitter2D.cpp:161
SharedPtr< Texture > texture_
Texture.
Definition: BorderImage.h:117
int minInstances_
Minimum number of instances required in a batch group to render as instanced.
Definition: View.h:364
Texture * GetTexture(TextureUnit unit) const
Return texture by unit.
Definition: Material.cpp:1197
Iterator Insert(const Pair< T, U > &pair, bool &exists)
Insert a pair. Return iterator and set exists flag according to whether the key already existed.
Definition: HashMap.h:375
void Reserve(unsigned newCapacity)
Set new capacity.
Definition: Vector.h:436
HashMap< StringHash, Variant > shaderParameters_
Shader parameters.
Definition: RenderPath.h:160
void Update(float delta)
Update the crowd simulation.
Definition: CrowdManager.cpp:678
HighlightMode
ListView selection highlight mode.
Definition: ListView.h:34
PhysicsWorld * GetPhysicsWorld() const
Return physics world.
Definition: RigidBody.h:153
Quaternion GetWheelRotation(int wheel)
Get wheel rotation relative to RigidBody.
Definition: RaycastVehicle.cpp:424
MaterialQuality materialQuality_
Material quality level.
Definition: Renderer.h:544
void SetZoneTextureAttr(const ResourceRef &value)
Set zone texture attribute.
Definition: Zone.cpp:218
String name_
Animation resource name.
Definition: AnimationController.h:56
bool SystemOpen(const String &fileName, const String &mode=String::EMPTY)
Open a file in an external program, with mode such as "edit" optionally specified....
Definition: FileSystem.cpp:437
T * operator->() const
Point to the array.
Definition: ArrayPtr.h:310
bool useDerivedOpacity_
Use derived opacity flag.
Definition: UIElement.h:700
void ApplyAttributes() override
Apply Attributes to the SplinePath.
Definition: SplinePath.cpp:70
unsigned indexStart_
Index start.
Definition: Model.h:102
void ApplyLinearImpulseToCenter(const Vector2 &impulse, bool wake)
Apply linear impulse to center.
Definition: RigidBody2D.cpp:353
bool fixedWidthResizing_
Fixed width resize flag.
Definition: Window.h:145
int * GetBuffer() const
Return highest level depth values.
Definition: OcclusionBuffer.h:126
void SetConvexHull(Model *model, unsigned lodLevel=0, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a convex hull from Model.
Definition: CollisionShape.cpp:683
Batch(const SourceBatch &rhs)
Construct from a drawable's source batch.
Definition: Batch.h:56
void UpdateParticle(Particle2D &particle, float timeStep, const Vector3 &worldPosition, float worldScale)
Update particle.
Definition: ParticleEmitter2D.cpp:417
const Vector2 & GetMaxAnchor() const
Return maximum anchor.
Definition: UIElement.h:463
bool NeedRenderShadowMap(const LightBatchQueue &queue)
Check whether a light queue needs shadow rendering.
Definition: View.cpp:3052
bool WriteRect(const Rect &value)
Write a Rect.
Definition: Serializer.cpp:106
void AddConstraint(Constraint *constraint)
Add a constraint to keep track of. Called by Constraint.
Definition: PhysicsWorld.cpp:740
PODVector< Object * > eventSenders_
Event sender stack.
Definition: Context.h:238
void SetCrowdTarget(const Vector3 &position, Node *node=nullptr)
Set the crowd target position. The target position is set to all crowd agents found in the specified ...
Definition: CrowdManager.cpp:188
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Handle the scene subsystem update event, step simulation here.
Definition: PhysicsWorld2D.cpp:714
void FinishBackgroundLoading(BackgroundLoadItem &item)
Finish one background loaded resource.
Node * CreateTemporaryChild(const String &name=String::EMPTY, CreateMode mode=REPLICATED, unsigned id=0)
Create a temporary child scene node (with specified ID if provided).
Definition: Node.cpp:799
bool bringToFront_
Bring to front when focused flag.
Definition: UIElement.h:692
NavigationQuality GetNavigationQuality() const
Get the agent's navigation quality.
Definition: CrowdAgent.h:169
void SetDetailSampleDistance(float distance)
Set detail sampling distance.
Definition: NavigationMesh.cpp:304
void SetVarNamesAttr(const String &value)
Set node user variable reverse mappings.
Definition: Scene.cpp:1067
static void WriteRaw(const String &message, bool error=false)
Write raw output to the log.
Definition: Log.cpp:208
void UpdateBufferSize()
Resize billboard vertex and index buffers.
Definition: BillboardSet.cpp:501
bool collideConnected_
Collide connected flag.
Definition: Constraint2D.h:104
void OnHidePopup() override
React to the popup being hidden.
Definition: DropDownList.cpp:138
void SetInterpolationMode(InterpolationMode interpolationMode)
Set the Interpolation Mode.
Definition: SplinePath.cpp:199
void MoveRange(unsigned dest, unsigned src, unsigned count)
Move a range of characters within the string.
Definition: Str.h:516
SharedPtr< VertexBuffer > vertexBuffer_
UI vertex buffer.
Definition: UI.h:369
unsigned echoCharacter_
Echo character.
Definition: LineEdit.h:150
BoundingBox(const Frustum &frustum)
Construct from a frustum.
Definition: BoundingBox.h:98
void SetScale(const Vector2 &scale)
Set scaling elements.
Definition: Matrix2.h:140
void GetLitBatches(Drawable *drawable, LightBatchQueue &lightQueue, BatchQueue *alphaQueue)
Get pixel lit batches for a certain light and drawable.
Definition: View.cpp:1379
virtual ~ProfilerBlock()
Destruct. Free the child blocks.
Definition: Profiler.h:62
void DiscoverHosts(unsigned port)
Scan the LAN/subnet for available hosts.
Definition: Network.cpp:351
float endScale_
End for start of trails.
Definition: RibbonTrail.h:229
void SetShadowDistance(float distance)
Set shadow draw distance.
Definition: Drawable.cpp:179
void Remove()
Remove from the parent node. If no other shared pointer references exist, causes immediate deletion.
Definition: Node.cpp:1119
long long frameTime_
Time on the previous frame.
Definition: Profiler.h:152
3x4 matrix for scene node transform calculations.
Definition: Matrix3x4.h:35
float GetNearClip() const
Return near clip distance. If a custom projection matrix is in use, is calculated from it instead of ...
Definition: Camera.cpp:268
float normalOffset_
Normal offset multiplier.
Definition: Light.h:77
HashIteratorBase(HashNodeBase *ptr)
Construct with a node pointer.
Definition: HashBase.h:67
constexpr T * operator->() const
Point to the object.
Definition: Iter.h:46
float elapsedTime_
Elapsed time accumulator.
Definition: Scene.h:328
void OnDragCancel(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags cancelButtons, Cursor *cursor) override
React to mouse drag cancel.
Definition: Window.cpp:239
void SetUTF8FromWChar(const wchar_t *str)
Construct UTF8 content from wide characters.
Definition: Str.cpp:751
ConstIterator Begin() const
Return iterator to the beginning.
Definition: HashSet.h:503
void SetCustomConvexHull(CustomGeometry *custom, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a convex hull from CustomGeometry.
Definition: CollisionShape.cpp:689
Node * GetTileNode(int x, int y) const
Return tile node (for tile layer only).
Definition: TileMapLayer2D.cpp:292
bool useLitBase_
Forward light base pass optimization flag. If in use, combine the base pass and first light for all o...
Definition: View.h:378
void Load(const XMLElement &element)
Read from an XML element.
Definition: RenderPath.cpp:116
void Maximize()
Maximize the window.
Definition: Graphics.cpp:337
void SetViewMask(unsigned mask)
Set view mask. Will be and'ed with object's view mask to see if the object should be rendered.
Definition: Camera.cpp:177
unsigned numWorldTransforms_
Number of world transforms.
Definition: Batch.h:94
Iterator(Node *ptr)
Construct with a node pointer.
Definition: HashMap.h:113
PODVector< VariantMap * > eventDataMaps_
Event data stack.
Definition: Context.h:240
void HandleTextFinished(StringHash eventType, VariantMap &eventData)
Handle enter pressed on the line edit.
Definition: Console.cpp:371
String GetAddress() const
Return remote address.
Definition: Connection.cpp:1656
bool WriteBuffer(const PODVector< unsigned char > &value)
Write a buffer, with size encoded as VLE.
Definition: Serializer.cpp:206
virtual ~GPUObject()
Destruct. Remove from the Graphics.
Definition: GPUObject.cpp:46
IntVector2 checkedOffset_
Checked image offset.
Definition: CheckBox.h:66
void HandleFilterChanged(StringHash eventType, VariantMap &eventData)
Handle filter changed.
Definition: FileSelector.cpp:385
ConstIterator(Node *ptr)
Construct with a node pointer.
Definition: HashMap.h:162
unsigned id_
Unique ID within the scene.
Definition: Node.h:687
HashMap< Pair< WeakPtr< RigidBody >, WeakPtr< RigidBody > >, ManifoldPair > currentCollisions_
Collision pairs on this frame.
Definition: PhysicsWorld.h:322
unsigned replicatedNodeID_
Next free non-local node ID.
Definition: Scene.h:314
void BeginGeometry(unsigned index, PrimitiveType type)
Begin defining a geometry. Clears existing vertices in that index.
Definition: CustomGeometry.cpp:524
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintWheel2D.cpp:159
Iterator Erase(Iterator it)
Erase an element by iterator. Return iterator to the next element.
Definition: List.h:330
unsigned GetNumRows() const
Return number of rows.
Definition: Text3D.cpp:473
bool operator<(const UniquePtr< U > &rhs) const
Test for less than with another unique pointer.
Definition: Ptr.h:618
bool HasEventHandler(StringHash eventType) const override
Return whether has subscribed to an event.
Definition: ScriptInstance.cpp:406
void SetFinishColorVariance(const Color &finishColorVariance)
Set finish color variance.
Definition: ParticleEffect2D.cpp:379
float GetAngularOffset() const
Return angular offset.
Definition: ConstraintMotor2D.h:58
IntVector2 dragBeginCursor_
Original mouse cursor position at drag begin.
Definition: Slider.h:112
void SetFlipVertical(bool enable)
Set vertical flipping mode. Called internally by View to resolve OpenGL / Direct3D9 rendertarget samp...
Definition: Camera.cpp:246
float GetMaxTorque() const
Return max torque.
Definition: ConstraintMotor2D.h:64
@ LOAD_SCENE
Load scene content without preloading. Resources will be requested synchronously when encountered.
Definition: Scene.h:51
const Vector3 & GetTargetPosition() const
Return the agent's requested target position.
Definition: CrowdAgent.h:131
void SetSelection(unsigned index)
Set selection.
Definition: ListView.cpp:509
unsigned ReadVLE()
Read a variable-length encoded unsigned integer, which can use 29 bits maximum.
Definition: Deserializer.cpp:428
asIScriptContext * immediateContext_
Immediate execution script context.
Definition: Script.h:131
C++ representation of Lua function object.
Definition: LuaFunction.h:38
void SetTileSize(int size)
Set tile size.
Definition: NavigationMesh.cpp:227
void AddTags(const String &tags, char separator=';')
Add tags with the specified separator (; by default).
Definition: UIElement.cpp:1473
void Bind()
Bind query object with variable set.
Definition: XMLElement.cpp:1070
void AddQuad(const Vector3 ¢er, float width, float height, const Color &color, bool depthTest=true)
Add a quad on the XZ plane.
Definition: DebugRenderer.cpp:474
bool IsDynamic() const
Return whether is dynamic.
Definition: VertexBuffer.h:70
2D rigid body component.
Definition: RigidBody2D.h:47
bool IsOpen() const
Return whether connection is in the open state.
Definition: HttpRequest.h:78
Bone * GetBoneParent(const Bone *bone)
Return parent of the given bone. Return null for root bones.
Definition: Skeleton.cpp:178
Vector3 ProjectOntoLine(const Vector3 &from, const Vector3 &to, bool clamped=false) const
Project position vector onto line segment.
Definition: Vector3.h:370
const T & operator*() const
Dereference the node value.
Definition: List.h:165
void SetBoundingBox(const BoundingBox &box)
Set local-space bounding box. Will be used as an oriented bounding box to test whether objects or the...
Definition: Zone.cpp:99
Color Interpolate(const ColorFrame &next, float time) const
Return interpolated value with another color-time pair at the time specified.
Definition: ParticleEffect.h:67
bool fixedScreenSize_
Billboards fixed screen size flag.
Definition: BillboardSet.h:168
const Vector< PODVector< Matrix3x4 > > & GetGeometrySkinMatrices() const
Return per-geometry skin matrices. If empty, uses global skinning.
Definition: AnimatedModel.h:166
void SetHotSpot(const Vector2 &hotspot)
Set hot spot.
Definition: StaticSprite2D.cpp:209
unsigned GetFormat() const
Return API-specific texture format.
Definition: Texture.h:73
void Finalize()
Finalize all prepared statements, close all BLOB handles, and finish all sqlite3_backup objects.
Definition: ODBCConnection.cpp:68
unsigned eastID_
Node ID of east neighbor.
Definition: Terrain.h:323
HashMap< unsigned, Component * > localComponents_
Local components by ID.
Definition: Scene.h:290
DynamicNavigationMesh(Context *)
Constructor.
Definition: DynamicNavigationMesh.cpp:211
One billboard in the billboard set.
Definition: BillboardSet.h:38
Vector3 GetWorldPosition() const
Return position in world space.
Definition: Node.h:407
HashMap< unsigned, SharedPtr< Sprite2D > > gidToSpriteMapping_
Gid to tile sprite mapping.
Definition: TmxFile2D.h:220
Individually rendered part of a heightmap terrain.
Definition: TerrainPatch.h:35
float GetRotationEnd() const
Return rotation end.
Definition: ParticleEffect2D.h:236
void SetEffectAttr(const ResourceRef &value)
Set particles effect attribute.
Definition: ParticleEmitter.cpp:358
void SetBlendMode(BlendMode blendMode)
Set blend mode.
Definition: ParticleEffect2D.cpp:449
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: View3D.cpp:75
static void RegisterObject(Context *context)
Register object factory.
Definition: Animatable.cpp:71
virtual void SetNavigationDataAttr(const PODVector< unsigned char > &value)
Set navigation data attribute.
Definition: NavigationMesh.cpp:879
const HashMap< TextureUnit, SharedPtr< Texture > > & GetTextures() const
Return all textures.
Definition: Material.h:203
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: AnimatedModel.cpp:799
BufferedSoundStream()
Construct.
Definition: BufferedSoundStream.cpp:32
LayoutMode layoutMode_
Layout mode.
Definition: UIElement.h:720
unsigned GetSampleSize() const
Return byte size of one sample.
Definition: Audio.h:72
const HashMap< StringHash, ResourceGroup > & GetAllResources() const
Return all loaded resources.
Definition: ResourceCache.h:155
unsigned target_
OpenGL target.
Definition: Texture.h:199
Node * InstantiateJSON(const JSONValue &source, const Vector3 &position, const Quaternion &rotation, CreateMode mode=REPLICATED)
Instantiate scene content from JSON data. Return root node if successful.
Definition: Scene.cpp:574
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately recursively to child nodes and components...
Definition: Node.cpp:275
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: LuaFile.cpp:59
Profiling data for one block in the profiling tree.
Definition: Profiler.h:33
bool hasExtraDefines_
Whether the pass command contains extra shader defines.
Definition: Batch.h:265
unsigned GetNumKeyFrames() const
Return number of keyframes.
Definition: Animation.h:87
HashMap< StringHash, Vector< AttributeInfo > > attributes_
Attribute descriptions per object type.
Definition: Context.h:230
TypeInfo(const char *typeName, const TypeInfo *baseTypeInfo)
Construct.
Definition: Object.cpp:36
Vector3 Translation() const
Return the translation part.
Definition: Matrix4.h:548
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: LineEdit.cpp:207
Queued 3D geometry draw call.
Definition: Batch.h:50
bool Open(const String &fileName, FileMode mode=FILE_READ)
Open a filesystem file. Return true if successful.
Definition: File.cpp:126
ShaderParameterAnimationInfo(Material *material, const String &name, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
Construct.
Definition: Material.cpp:182
void AddRef()
Add a reference to the object pointed to.
Definition: Ptr.h:226
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ParticleEffect2D.cpp:114
Iterator Erase(const Iterator &it)
Erase an element by iterator. Return iterator to the next element.
Definition: Vector.h:955
T Acos(T x)
Return arc cosine in degrees.
Definition: MathDefs.h:151
void SetDrawOffMeshConnections(bool enable)
Draw debug geometry for OffMeshConnection components.
Definition: NavigationMesh.h:266
void SetColorFrames(const Vector< ColorFrame > &colorFrames)
Set color animation of particles.
Definition: ParticleEffect.cpp:634
static void RegisterObject(Context *context)
Register object factory and attributes.
Definition: RaycastVehicle.cpp:185
void StopServer()
Stop the server.
Definition: Network.cpp:450
float startParticleSize_
Start particle size.
Definition: ParticleEffect2D.h:296
NavmeshPartitionType partitionType_
Type of the heightfield partitioning.
Definition: NavigationMesh.h:346
Zone * zone_
Zone.
Definition: Batch.h:98
bool EmitParticle(const Vector3 &worldPosition, float worldAngle, float worldScale)
Emit particle.
Definition: ParticleEmitter2D.cpp:363
Vector3 normal_
Hit worldspace normal.
Definition: PhysicsWorld.h:71
WeakPtr< Component > component_
Link to the actual component.
Definition: ReplicationState.h:150
@ WM_LOOP
Loop mode.
Definition: AnimationDefs.h:34
bool GetDrawShape() const
Return draw shape.
Definition: PhysicsWorld2D.h:165
IndexBuffer(Context *context, bool forceHeadless=false)
Construct. Optionally force headless (no GPU-side buffer) operation.
Definition: IndexBuffer.cpp:36
Octree * GetOctree() const
Return octree.
Definition: View.h:139
String Trimmed() const
Return string with whitespace trimmed from the beginning and the end.
Definition: Str.cpp:520
SourceBatch()
Construct with defaults.
unsigned GetObstacleID() const
Get the internal obstacle ID.
Definition: Obstacle.h:65
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:121
Heightfield geometry data.
Definition: CollisionShape.h:125
~Material() override
Destruct.
const HashMap< StringHash, MaterialShaderParameter > & GetShaderParameters() const
Return all shader parameters.
Definition: Material.h:220
NavigationQuality navQuality_
Agent's navigation quality. The higher the setting, the higher the CPU usage during crowd simulation.
Definition: CrowdAgent.h:228
static void RegisterObject(Context *context)
Registers this class to the context.
Definition: IKSolver.cpp:80
bool HasTextureUnit(TextureUnit unit) const
Return whether uses a texture unit (only for pixel shaders). Not applicable on OpenGL,...
Definition: ShaderVariation.h:117
bool IsDirty() const
Return whether has unapplied data.
Definition: ConstantBuffer.h:62
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLTexture2DArray.cpp:57
Vector< SharedPtr< AnimationState > > nodeAnimationStates_
Node hierarchy mode animation states.
Definition: AnimationController.h:208
void SetRange(float range)
Set ProgressBar range maximum value (minimum value is always 0).
Definition: ProgressBar.cpp:82
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: ParticleEmitter2D.h:147
void SetOtherPosition(const Vector3 &position)
Set constraint position relative to the other body. If connected to the static world,...
Definition: Constraint.cpp:219
@ HM_NEVER
Never highlight selections.
Definition: ListView.h:37
void UpdateBufferSize()
Resize RibbonTrail vertex and index buffers.
Definition: RibbonTrail.cpp:444
void UpdateSkinning()
Recalculate skinning.
Definition: AnimatedModel.cpp:1303
void ValidateSelection()
Validate text selection to be within the text.
Definition: Text.cpp:745
void SetFilters(const Vector< String > &filters, unsigned defaultIndex)
Set filters.
Definition: FileSelector.cpp:215
Parameter structure for obstacle avoidance params (copied from DetourObstacleAvoidance....
Definition: CrowdManager.h:44
FileMode GetMode() const
Return the open mode.
Definition: File.h:101
unsigned GetUInt(unsigned defaultValue=0) const
Return unsigned integer value.
Definition: JSONValue.h:196
@ OT_POLYGON
Polygon.
Definition: TileMapDefs2D.h:95
int GetMaxShadowMaps() const
Return maximum number of shadow maps per resolution.
Definition: Renderer.h:307
void ProcessNewNode(Node *node)
Process a node that the client has not yet received.
Definition: Connection.cpp:1239
void SetShaderParameter(const String &name, const Variant &value)
Set a shader parameter.
Definition: RenderPath.cpp:242
const Vector< TextureFrame > & GetTextureFrames() const
Return all texture animation frames.
Definition: ParticleEffect.h:326
float inactiveTime_
Inactive period.
Definition: ParticleEffect.h:389
bool HasComponent() const
Template version of checking whether has a specific component.
Definition: Node.h:738
void MarkFramesDirty()
Mark frames dirty.
Definition: Constraint.h:168
Vector3 GetActualVelocity() const
Return the agent's actual velocity.
Definition: CrowdAgent.cpp:485
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: SpriteSheet2D.cpp:54
WeakPtr(std::nullptr_t) noexcept
Construct a null weak pointer.
Definition: Ptr.h:274
void SendRemoteEvents()
Send queued remote events. Called by Network.
Definition: Connection.cpp:301
const Vector2 & GetAnchor() const
Return anchor.
Definition: ConstraintWheel2D.h:59
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintDistance2D.cpp:47
Base class for visible components.
Definition: Drawable.h:110
void SetVertexCount(unsigned count)
Set vertex count.
Definition: CollisionChain2D.cpp:68
bool disableCollision_
Disable collision between connected bodies flag.
Definition: Constraint.h:201
bool viewDirty_
View matrix dirty flag.
Definition: Camera.h:236
HashMap & operator+=(const Pair< T, U > &rhs)
Add-assign a pair.
Definition: HashMap.h:281
void Insert(const ConstIterator &start, const ConstIterator &end)
Insert a range by iterators.
Definition: HashMap.h:399
virtual void PostUpdate(float timeStep)
Called on scene post-update, variable timestep.
Definition: LogicComponent.cpp:55
void BeginDumpShaders(const String &fileName)
Begin dumping shader variation names to an XML file for precaching.
Definition: Graphics.cpp:361
MouseButtonFlags dragButtonCombo_
Drag button combo.
Definition: UIElement.h:746
float GetRadius() const
Return area light mode radius. Works only with PBR shaders.
Definition: Light.h:229
void UpdateNumTransforms()
Ensure proper size of world transforms when nodes are added/removed. Also mark node IDs dirty.
Definition: StaticModelGroup.cpp:393
T Atan(T x)
Return arc tangent in degrees.
Definition: MathDefs.h:154
void EndFrame()
End frame. Increment total time and send frame end event.
Definition: Timer.cpp:130
void SetNeighbors(Terrain *north, Terrain *south, Terrain *west, Terrain *east)
Set all neighbor terrains at once.
Definition: Terrain.cpp:340
float agentHeight_
Navigation agent height.
Definition: NavigationMesh.h:318
T * operator->() const
Point to the object.
Definition: Ptr.h:603
unsigned GetNumQueryFilterTypes() const
Get the number of configured query filter types.
Definition: CrowdManager.h:132
int GetWidth() const
Return width.
Definition: RenderSurface.cpp:82
void SetDefaultScriptFile(ScriptFile *file)
Set immediate mode script file.
Definition: Script.cpp:213
void SetVariantVector(const VariantVector &variantVector, Context *context=nullptr)
Set variant vector, context must provide for resource ref.
Definition: JSONValue.cpp:593
unsigned lodLevel_
Geometry LOD level if applicable.
Definition: NavigationMesh.h:64
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: ScriptInstance.cpp:194
void SetRadialAccelVariance(float radialAccelVariance)
Set radial acceleration variance.
Definition: ParticleEffect2D.cpp:354
void SetValue(float value)
Set ProgressBar current value.
Definition: ProgressBar.cpp:92
Texture * GetTexture() const
Return texture.
Definition: BorderImage.h:76
PODVector< unsigned char > ReadBuffer()
Read a buffer with size encoded as VLE.
Definition: Deserializer.cpp:276
void RemoveItem(UIElement *item, unsigned index=0)
Remove specific item, starting search at the specified index if provided. In hierarchy mode will also...
Definition: ListView.cpp:415
static String GetCallStack(asIScriptContext *context)
Get call stack.
Definition: Script.cpp:270
bool visible_
Visible.
Definition: TmxFile2D.h:85
float GetInactiveTime() const
Return emission inactive period length (0 = infinite).
Definition: ParticleEffect.h:272
static const Vector3 UP
(0,1,0) vector.
Definition: Vector3.h:487
IntVector2 GetWindowPosition() const
Return window position.
Definition: Graphics.cpp:234
Texture * depthOnlyDummyTexture_
Dummy texture for D3D9 depth only rendering.
Definition: View.h:344
Geometry * GetOcclusionGeometry() const
Return geometry used for occlusion.
Definition: TerrainPatch.cpp:258
BlendMode blendMode_
Blend mode. Affects quad command only.
Definition: RenderPath.h:174
Material's shader parameter animation instance.
Definition: Material.h:76
T & operator*() const
Dereference the node value.
Definition: List.h:103
bool IsEnabledSelf() const
Returns the element's last own enabled state. May be different than the value returned by IsEnabled w...
Definition: UIElement.h:514
float GetBytesOutPerSec() const
Return bytes sent per second.
Definition: Connection.cpp:1100
SharedPtr(T *ptr) noexcept
Construct from a raw pointer.
Definition: Ptr.h:73
Iterator Find(const T &value)
Return iterator to value, or to the end if not found.
Definition: Vector.h:464
unsigned BuildTiles(Vector< NavigationGeometryInfo > &geometryList, const IntVector2 &from, const IntVector2 &to)
Build tiles in the rectangular area. Return number of built tiles.
Definition: DynamicNavigationMesh.cpp:999
float SaturationHSV() const
Return saturation as defined for HSV.
Definition: Color.cpp:143
AbstractFile(unsigned int size)
Construct.
Definition: AbstractFile.h:38
@ LM_FORCE_CLAMPED
Force clamped.
Definition: AnimatedSprite2D.h:46
void * end_
Data end pointer.
Definition: WorkQueue.h:53
void Expand(unsigned index, bool enable, bool recursive=false)
Expand item at index. Only has effect in hierarchy mode.
Definition: ListView.cpp:773
HashMap< unsigned, PODVector< unsigned char > > nodeLatestData_
Pending latest data for not yet received nodes.
Definition: Connection.h:307
bool IsArray() const
Whether this texture has been detected as a volume, only relevant for DDS.
Definition: Image.h:141
bool relative_
Billboards relative flag.
Definition: BillboardSet.h:162
SpriteSheet2D(Context *context)
Construct.
Definition: SpriteSheet2D.cpp:42
Texture * GetTexture() const
Return texture.
Definition: Sprite.h:95
BoundingBox GetWorldBoundingBox() const
Return world space bounding box of the navigation mesh.
Definition: NavigationMesh.cpp:867
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Renderer2D.cpp:276
CullMode
Culling mode.
Definition: GraphicsDefs.h:98
const Plane & GetClipPlane() const
Return the custom clipping plane.
Definition: Camera.h:185
Custom geometry vertex.
Definition: CustomGeometry.h:31
void SetIKConstraintNode(ik_node_t *constraintNode)
Intended to be used only by IKSolver.
Definition: IKConstraint.cpp:108
Text * GetProfilerText() const
Return profiler text.
Definition: DebugHud.h:82
FrameInfo frame_
View frame info for current frame.
Definition: Renderer2D.h:123
BoundingBox Transformed(const Matrix3 &transform) const
Return transformed by a 3x3 matrix.
Definition: BoundingBox.cpp:126
void SetReturnFailedResources(bool enable)
Enable or disable returning resources that failed to load. Default false. This may be useful in editi...
Definition: ResourceCache.h:126
void ApplyValue(const Variant &newValue) override
Apply new animation value to the target object. Called by Update().
Definition: Material.cpp:193
Graphics subsystem implementation. Holds API-specific objects.
Definition: OGLGraphicsImpl.h:99
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: Light.cpp:167
const Color & GetColor() const
Return color or default on type mismatch. Vector4 is aliased to Color if necessary.
Definition: Variant.h:1194
T & operator*() const
Dereference the object.
Definition: Ptr.h:610
Cascaded shadow map parameters.
Definition: Light.h:81
float dampingForce_
Particle velocity damping force.
Definition: ParticleEffect.h:385
void SortBackToFront()
Sort non-instanced draw calls back to front.
Definition: Batch.cpp:728
Vector< PODVector< Matrix3x4 > > geometrySkinMatrices_
Subgeometry skinning matrices, used if more bones than skinning shader can manage.
Definition: AnimatedModel.h:225
WeakPtr< TmxFile2D > tmxFile_
Tmx file.
Definition: TmxFile2D.h:75
void Get(const Serializable *ptr, Variant &value) const override
Invoke getter function.
Definition: Serializable.h:160
unsigned char GetTimeStamp() const
Return the controls timestamp, sent from client to server along each control update.
Definition: Connection.h:186
void ClearRequiredPackageFiles()
Clear required package files.
Definition: Scene.cpp:686
RigidBody * body_
Rigid body that was hit.
Definition: PhysicsWorld.h:77
Component * CloneComponent(Component *component, unsigned id=0)
Clone a component from another node using its create mode. Return the clone if successful or null on ...
Definition: Node.cpp:942
Color ambientColor_
Ambient color.
Definition: Zone.h:148
float brightness_
Brightness multiplier.
Definition: Light.h:373
T & operator*() const
Dereference the object.
Definition: Ptr.h:414
PODVector(const T *data, unsigned size)
Construct with initial data.
Definition: Vector.h:710
void SetReflectionPlaneAttr(const Vector4 &value)
Set reflection plane attribute.
Definition: Camera.cpp:616
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: DropDownList.cpp:81
virtual unsigned Read(void *dest, unsigned size)=0
Read bytes from the stream. Return number of bytes actually read.
bool GetFlipY() const
Return flip Y.
Definition: TileMapDefs2D.h:142
const StringVector & GetTags() const
Return all tags.
Definition: Node.h:353
FileMode mode_
Open mode.
Definition: File.h:123
bool IsThreaded() const
Return whether is using threads to speed up rendering.
Definition: OcclusionBuffer.h:150
void DebugDraw(UIElement *element)
Debug draw a UI element.
Definition: UI.cpp:546
void PushFloat(float value)
Push float to stack.
Definition: LuaFunction.cpp:116
float GetSpeed() const
Return speed.
Definition: ValueAnimationInfo.h:75
void CalculateJointRotations()
Skinned models require joint rotations to be calculated so skinning works correctly....
Definition: IKSolver.cpp:393
Intermediate light processing result.
Definition: View.h:55
unsigned ToHash() const
Return hash value.
Definition: Batch.cpp:714
bool operator==(const Vector< T > &rhs) const
Test for equality with another vector.
Definition: Vector.h:160
DirtyBits dirtyAttributes_
Dirty attribute bits.
Definition: ReplicationState.h:152
int GetHeight() const
Return height.
Definition: UIElement.h:418
void SetRestitution(float restitution)
Set restitution coefficient.
Definition: RigidBody.cpp:401
unsigned short FloatToHalf(float value)
Convert float to half float. From https://gist.github.com/martinkallman/5049614.
Definition: MathDefs.h:302
unsigned id_
Unique ID within the scene.
Definition: Component.h:140
bool operator!=(Enum rhs) const
Non-equality check against enum value.
Definition: FlagSet.h:202
void AddBodyToWorld()
Create the rigid body, or re-add to the physics world with changed flags. Calls UpdateMass().
Definition: RigidBody.cpp:952
void FinishResources(int maxMs)
Process resources that are ready to finish.
void SetInstancingData(void *lockedData, unsigned stride, unsigned &freeIndex)
Pre-set the instance data. Buffer must be big enough to hold all data.
Definition: Batch.cpp:645
void SetDepthBias(float constantBias, float slopeScaledBias)
Set depth bias.
Definition: OGLGraphics.cpp:1803
T GetCustom() const
Return custom variant value or default-constructed on type mismatch.
Definition: Variant.h:1309
Serializable(Context *context)
Construct.
Definition: Serializable.cpp:56
@ USE_POSTUPDATE
Bitmask for using the scene post-update event.
Definition: LogicComponent.h:40
AnimationController(Context *context)
Construct.
Definition: AnimationController.cpp:56
Resource * GetResource(StringHash type, const String &name, bool sendEventOnFailure=true)
Return a resource by type and name. Load if not loaded yet. Return null if not found or if fails,...
Definition: ResourceCache.cpp:562
Helper base class for user-defined game logic components that hooks up to update events and forwards ...
Definition: LogicComponent.h:49
LuaScriptInstance(Context *context)
Construct.
Definition: LuaScriptInstance.cpp:66
void Rehash()
Rehash the buckets.
Definition: HashMap.h:765
void RemoveCommand(unsigned index)
Remove a command by index.
Definition: RenderPath.cpp:484
Vector< ScratchBuffer > scratchBuffers_
Scratch buffers.
Definition: Graphics.h:769
virtual unsigned GetNumOccluderTriangles()
Return number of occlusion geometry triangles.
Definition: Drawable.h:144
static unsigned CStringLength(const char *str)
Return length of a C string.
Definition: Str.h:497
LockState lockState_
Buffer locking state.
Definition: IndexBuffer.h:105
unsigned GetNumNetworkAttributes() const
Return number of network replication attributes.
Definition: Serializable.cpp:994
const StringMap & GetInternalMap() const
Return map of hashes. Return value is unsafe to use if RegisterString is called from other threads.
Definition: StringHashRegister.h:55
bool repeat_
Repeat flag.
Definition: ScriptEventListener.h:44
Rect() noexcept
Construct an undefined rect.
Definition: Rect.h:35
const Quaternion & GetRotation() const
Return constraint rotation relative to own body.
Definition: Constraint.h:119
void SetCrowdVelocity(const Vector3 &velocity, Node *node=nullptr)
Set the crowd move velocity. The move velocity is applied to all crowd agents found in the specified ...
Definition: CrowdManager.cpp:216
int GetShadowMapSize() const
Return shadow map resolution.
Definition: Renderer.h:289
void SetOwnerBodyAnchor(const Vector2 &anchor)
Set owner body anchor.
Definition: ConstraintRope2D.cpp:58
SharedPtr< BackgroundLoader > backgroundLoader_
Resource background loader.
Definition: ResourceCache.h:244
StringHash nameHash_
Package file name hash.
Definition: PackageFile.h:94
StringHash soundTypeHash_
SoundSource type hash.
Definition: SoundSource.h:134
T * GetDerivedComponent(bool recursive=false) const
Return first component derived from class.
Definition: Node.h:740
virtual void Update(float timeStep)
Update the animations. Is called from HandleScenePostUpdate().
Definition: AnimationController.cpp:88
ParticleEffect2D * GetEffect() const
Return particle effect.
Definition: ParticleEmitter2D.cpp:140
virtual bool LoadXML(const XMLElement &source)
Load from XML data. Return true if successful.
Definition: Serializable.cpp:344
Definition: OctreeQuery.h:257
NamedPipe(Context *context)
Construct.
Definition: NamedPipe.cpp:45
void SetDampingRatio(float dampingRatio)
Set damping ratio.
Definition: ConstraintMouse2D.cpp:102
void HandleNavigationTileAdded(StringHash eventType, VariantMap &eventData)
Handle navigation mesh tile added.
Definition: Obstacle.cpp:142
SharedPtr< Sprite2D > sprite_
Spine sprite.
Definition: AnimationSet2D.h:100
WeakPtr< FontFace > fontFace_
Current face.
Definition: Text.h:221
void OnDrawOrderChanged() override
Handle draw order changed.
Definition: ParticleEmitter2D.cpp:204
void RemoveAttributeAnimation(const String &name)
Remove attribute animation, attribute name can in following format: "attribute" or "#0/#1/attribute" ...
Definition: ObjectAnimation.cpp:204
Source data for a 3D geometry draw call.
Definition: Drawable.h:81
HashMap(const HashMap< T, U > &map)
Construct from another hash map.
Definition: HashMap.h:226
@ O_ORTHOGONAL
Orthogonal.
Definition: TileMapDefs2D.h:39
BoundingBox(float min, float max) noexcept
Construct from minimum and maximum floats (all dimensions same).
Definition: BoundingBox.h:75
IntRect imageBorder_
Border dimensions on the image.
Definition: BorderImage.h:123
NavArea(Context *)
Construct.
Definition: NavArea.cpp:41
static unsigned CalculateCapacity(unsigned size, unsigned capacity)
Calculate new vector capacity.
Definition: Vector.h:569
void ThreadFunction() override
Process the connection in the worker thread until closed.
Definition: HttpRequest.cpp:78
Matrix3x4 transform_
Transform matrix.
Definition: Sprite.h:126
T Ln(T x)
Return natural logarithm of X.
Definition: MathDefs.h:163
PODVector< unsigned char > GetGeometryDataAttr() const
Return geometry data attribute.
Definition: CustomGeometry.cpp:775
Vector2 vertex2_
Vertex 2.
Definition: CollisionEdge2D.h:67
void Bounds(float *min, float *max, bool clipped=false) const
Stores the values of least and greatest RGB component at specified pointer addresses,...
Definition: Color.cpp:159
void HandleEndFrame(StringHash eventType, VariantMap &eventData)
Handle end of frame. Process the threaded log messages.
Definition: Log.cpp:267
unsigned intervalFrames_
Frames in the current interval.
Definition: Profiler.h:227
bool IsAwake() const
Return awake.
Definition: RigidBody2D.cpp:533
Vector2 vertex1_
Vertex 1.
Definition: CollisionEdge2D.h:65
T Min(T lhs, U rhs)
Return the smaller of two values.
Definition: MathDefs.h:83
SDL_Window * GetWindow() const
Return SDL window.
Definition: Graphics.h:333
AttributeHandle RegisterAttribute(StringHash objectType, const AttributeInfo &attr)
Register object attribute.
Definition: Context.cpp:196
void SetMaterialsAttr(const ResourceRefList &value)
Set materials attribute.
Definition: CustomGeometry.cpp:768
bool resizable_
Whether the window is resizable.
Definition: Graphics.h:88
WeakPtr< ShaderVariation > vertexShader_
Vertex shader.
Definition: OGLShaderProgram.h:91
void SetCcdRadius(float radius)
Set continuous collision detection swept sphere radius.
Definition: RigidBody.cpp:419
~BackgroundLoader() override
Destruct. Forcibly clear the load queue.
bool CheckUpdate(float distance, float &accumulator)
Increment and check priority accumulator. Return true if should update. Called by Connection.
Definition: NetworkPriority.cpp:85
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix3.h:287
virtual bool Allocate(const BoundingBox &boundingBox, unsigned maxTiles)
Allocate the navigation mesh without building any tiles. Bounding box is not padded....
Definition: NavigationMesh.cpp:325
OcclusionBuffer * GetOcclusionBuffer(Camera *camera)
Allocate an occlusion buffer.
Definition: Renderer.cpp:1103
~ListView() override
Destruct.
void Acquire()
Acquire the mutex. Block if already acquired.
Definition: Mutex.cpp:89
bool recreateConstraint_
Recreate constraint flag.
Definition: Constraint.h:203
void SetMaxDirection(const Vector3 &direction)
Set positive direction limit.
Definition: ParticleEffect.cpp:495
const String & GetWindowTitle() const
Return window title.
Definition: Graphics.h:336
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Constraint2D.cpp:148
unsigned resizeNestingLevel_
Resize nesting level to prevent multiple events and endless loop.
Definition: UIElement.h:728
void Cleanup()
Clean up redundant free space. Not called in fast mode.
Definition: AreaAllocator.cpp:207
Description of index buffer data for asynchronous loading.
Definition: Model.h:80
unsigned GetPixelInt(int x, int y) const
Return a 2D pixel integer color. R component is in the 8 lowest bits.
Definition: Image.cpp:1510
SharedPtr< Material > CreateMaterial(Texture2D *texture, BlendMode blendMode)
Create material by texture and blend mode.
Definition: Renderer2D.cpp:283
float GetLinearDamping() const
Return linear velocity damping factor.
Definition: RigidBody.cpp:638
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:54
BlendMode GetBlendMode() const
Return blend mode.
Definition: Technique.h:90
const Vector2 & GetMinAnchor() const
Return minimum anchor.
Definition: UIElement.h:460
String name_
Name.
Definition: UIElement.h:678
bool used_
Use flag.
Definition: OcclusionBuffer.h:61
void AddTrigger(const AnimationTriggerPoint &trigger)
Add a trigger point.
Definition: Animation.cpp:342
void WriteInitialDeltaUpdate(Serializer &dest, unsigned char timeStamp)
Write initial delta network update.
Definition: Serializable.cpp:737
int y_
Y coordinate.
Definition: Vector2.h:158
Animated sprite component, it uses to play animation created by Spine (http://www....
Definition: AnimatedSprite2D.h:57
int RoundToInt(T x)
Round value to nearest integer.
Definition: MathDefs.h:213
void OnElementResized(StringHash eventType, VariantMap &args)
Handle resizing of element. Setting size of element will automatically resize texture....
Definition: UIComponent.cpp:222
@ IM_LINEAR
Linear interpolation (default).
Definition: ValueAnimation.h:42
~SoundListener() override
Destruct.
void SetAngularVelocity(float angularVelocity)
Set angular velocity.
Definition: RigidBody2D.cpp:314
UniquePtr(std::nullptr_t)
Construct empty.
Definition: Ptr.h:589
bool HasTextureUnit(TextureUnit unit) const
Return whether uses a texture unit.
Definition: OGLShaderProgram.h:62
void SetEffectRoundStroke(bool roundStroke)
Set stroke rounding. Corners of the font will be rounded off in the stroke so the stroke won't have c...
Definition: Text3D.cpp:293
virtual void OnRemoveFromOctree()
Handle removal from octree.
Definition: Drawable.h:318
Vector3 direction_
Direction (For direction based billboard only).
Definition: BillboardSet.h:51
bool CheckRemoteEvent(StringHash eventType) const
Return whether a remote event is allowed to be received.
Definition: Network.cpp:690
Intersection IsInside(const Sphere &sphere) const
Test if another sphere is inside, outside or intersects.
Definition: Sphere.h:166
Two-dimensional vector.
Definition: Vector2.h:175
void SetMinTimeToLive(float time)
Set particle minimum time to live.
Definition: ParticleEffect.cpp:540
const VariantMap & GetVariantMap() const
Return a variant map or empty on type mismatch.
Definition: Variant.h:1244
static void RegisterObject(Context *context)
Register object factory.
Definition: CrowdAgent.cpp:105
bool CheckDrawableFit(const BoundingBox &box) const
Check if a drawable object fits.
Definition: Octree.cpp:168
int GetVelocityIterations() const
Return velocity iterations.
Definition: PhysicsWorld2D.h:194
Static model component with fixed position in relation to the camera.
Definition: Skybox.h:31
void SetFlushGPU(bool enable)
Set whether to flush the GPU command buffer to prevent multiple frames being queued and uneven frame ...
Definition: OGLGraphics.cpp:532
void SetParent(UIElement *parent, unsigned index=M_MAX_UNSIGNED)
Set parent element. Same as parent->InsertChild(index, this).
Definition: UIElement.cpp:1433
Color GetColor(const String &name) const
Return a color attribute, or default if missing.
Definition: XMLElement.cpp:787
int depth_
Texture depth.
Definition: Texture.h:221
Vector3 center_
Sphere center.
Definition: Sphere.h:202
float rotation_
Rotation.
Definition: BillboardSet.h:49
bool IsZoneDirty() const
Return whether current zone is inconclusive or dirty due to the drawable moving.
Definition: Drawable.h:257
FontFace(Font *font)
Construct.
Definition: FontFace.cpp:37
bool IsInf() const
Return whether any component is Inf.
Definition: Vector3.h:420
Internal implementation structure for less performance-critical Node variables.
Definition: Node.h:58
OcclusionBuffer * occlusionBuffer_
Occlusion buffer for the main camera.
Definition: View.h:330
FontType fontType_
Font type.
Definition: Font.h:109
PODVector< Vector2 > vertices_
Vertices.
Definition: CollisionChain2D.h:79
Vector3 position_
Hit worldspace position.
Definition: PhysicsWorld.h:69
int positionIterations_
Position iterations.
Definition: PhysicsWorld2D.h:226
float GetLinearRestThreshold() const
Return linear velocity deactivation threshold.
Definition: RigidBody.cpp:633
static void RegisterObject(Context *context)
Register object factory.
Definition: TmxFile2D.cpp:388
ResourceRef GetAnimationSetAttr() const
Return animation set attribute.
Definition: AnimatedSprite2D.cpp:207
bool SaveXML(Serializer &dest, const String &indentation="\t") const
Save to an XML file. Return true if successful.
Definition: Scene.cpp:263
void RemoveAllTags()
Remove all tags.
Definition: Node.cpp:417
void SetViewMask(unsigned mask)
Set view mask. Is and'ed with camera's view mask to see if the object should be rendered.
Definition: Drawable.cpp:191
AnimationState * GetAnimationState(Animation *animation) const
Return animation state by animation pointer.
Definition: AnimatedModel.cpp:657
float height_
Agent's height, if 0 the navigation mesh's setting will be used.
Definition: CrowdAgent.h:222
Component * CreateComponent(StringHash type, CreateMode mode=REPLICATED, unsigned id=0)
Create a component to this node (with specified ID if provided).
Definition: Node.cpp:914
void FreeNode(Node *node)
Free a node.
Definition: List.h:490
virtual void Update(const FrameInfo &frame)
Update before octree reinsertion. Is called from a worker thread.
Definition: Drawable.h:131
void SetWorldPosition(const Vector3 &position)
Set position in world space.
Definition: Node.cpp:513
void SetScaleSilent(const Vector3 &scale)
Set scale in parent space silently without marking the node & child nodes dirty. Used by animation co...
Definition: Node.h:631
void SetSpriterAnimation()
Handle set spriter animation.
Definition: AnimatedSprite2D.cpp:389
String GetName() const
Return element name (or attribute name if it is an attribute only XPath query result).
Definition: XMLElement.cpp:578
int languageIndex_
Index of current language.
Definition: Localization.h:73
float GetMinEmissionRate() const
Return minimum emission rate.
Definition: ParticleEffect.h:275
void SetCameraShaderParameters(Camera *camera)
Set camera-specific shader parameters. Called by Batch and internally by View.
Definition: View.cpp:704
static void RegisterObject(Context *context)
Register object factory.
Definition: PListFile.cpp:306
void Insert(const HashMap< T, U > &map)
Insert a map.
Definition: HashMap.h:384
Matrix3 RotationMatrix() const
Return the rotation matrix with scaling removed.
Definition: Matrix4.h:536
bool subscribed_
Flag for whether is subscribed to animation updates.
Definition: Material.h:319
short texHeight_
Height in texture.
Definition: FontFace.h:46
bool SaveLayout(Serializer &dest, UIElement *element)
Save a UI layout to an XML file. Return true if successful.
Definition: UI.cpp:625
void SetFillMode(FillMode mode)
Set polygon fill mode.
Definition: OGLGraphics.cpp:1843
void HandleModelReloadFinished(StringHash eventType, VariantMap &eventData)
Update trimesh or convex shape after a model has reloaded itself.
Definition: CollisionShape.cpp:1209
HashSet & operator=(const HashSet< T > &rhs)
Assign a hash set.
Definition: HashSet.h:219
unsigned indexCount_
Number of indices.
Definition: CollisionShape.h:121
TerrainPatch * GetSouthPatch() const
Return south neighbor patch.
Definition: TerrainPatch.h:92
const String & GetFileName() const
Return current filename.
Definition: FileSelector.cpp:261
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ParticleEffect2D.cpp:227
void LimitVertexLights(bool removeConvertedLights)
Sort and limit per-vertex lights to maximum allowed.
Definition: Drawable.cpp:338
PODVector< Camera * > viewCameras_
List of cameras from which is seen on the current frame.
Definition: Drawable.h:383
JSONValue(const String &value)
Construct with a string.
Definition: JSONValue.h:113
void RemoveEventHandler(StringHash eventType) override
Remove a scripted event handler.
Definition: ScriptInstance.cpp:381
Material * customMaterial_
Custom material.
Definition: UIBatch.h:97
AsyncLoadState GetAsyncLoadState() const
Return the asynchronous loading state.
Definition: Resource.h:98
void * GetHandle() const
Return the file handle.
Definition: File.h:107
String & AppendUTF8(unsigned unicodeChar)
Append Unicode character at the end as UTF8.
Definition: Str.cpp:855
int y_
Y coordinate.
Definition: Vector3.h:161
unsigned dataSize_
Vertex data size.
Definition: Model.h:74
void Seek(float seekTime)
Seek to time.
Definition: SoundSource.cpp:147
float GetFrequencyHz() const
Return frequency Hz.
Definition: ConstraintMouse2D.h:59
unsigned GetNumPersistentComponents() const
Calculate number of non-temporary components.
Definition: Node.cpp:1881
bool SetMode(int bufferLengthMSec, int mixRate, bool stereo, bool interpolation=true)
Initialize sound output with specified buffer length and output mode.
Definition: Audio.cpp:75
bool SetBlendMode(const String &name, AnimationBlendMode mode)
Set animation blending mode. Return true on success.
Definition: AnimationController.cpp:405
Queued remote event.
Definition: Connection.h:55
void SetWrapMode(WrapMode wrapMode)
Set wrap mode.
Definition: ValueAnimationInfo.h:57
Asynchronous loading progress of a scene.
Definition: Scene.h:57
void SetModelShape(ShapeType shapeType, Model *model, unsigned lodLevel, const Vector3 &scale, const Vector3 &position, const Quaternion &rotation)
Set as specified shape type using model and LOD.
Definition: CollisionShape.cpp:1139
void SetHighLimit(const Vector2 &limit)
Set high limit. Interpretation is constraint type specific.
Definition: Constraint.cpp:282
Matrix3x4 model_
Model matrix.
Definition: OcclusionBuffer.h:68
Variant GetAttribute(unsigned index) const
Return attribute value by index. Return empty if illegal index.
Definition: Serializable.cpp:902
void HandleNavMeshChanged(StringHash eventType, VariantMap &eventData)
Handle navigation mesh changed event. It can be navmesh being rebuilt or being removed from its node.
Definition: CrowdManager.cpp:707
ProfilerBlock * current_
Current profiling block.
Definition: Profiler.h:223
float offsetX_
X offset for viewport transform.
Definition: OcclusionBuffer.h:219
bool instancingSupport_
Instancing support flag.
Definition: Graphics.h:755
HashNodeBase * next_
Next node.
Definition: HashBase.h:54
unsigned systemFBO_
iOS/tvOS system framebuffer handle.
Definition: OGLGraphicsImpl.h:114
TrailPoint endTail_
End of trail point for smoother tail disappearance.
Definition: RibbonTrail.h:252
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: Texture2D.h:92
~NavigationMesh() override
Destruct.
Definition: NavigationMesh.cpp:129
TextEffect
Text effect.
Definition: Text.h:39
void SetText(const String &text)
Set text. Text is assumed to be either ASCII or UTF8-encoded.
Definition: Text.cpp:293
const String & GetCommandInterpreter() const
Return the last used command interpreter.
Definition: Console.h:99
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Technique.cpp:258
unsigned offset_
Offset of element from vertex start. Filled by VertexBuffer once the vertex declaration is built.
Definition: GraphicsDefs.h:220
Mutex & GetModuleMutex()
Return the script module create/delete mutex.
Definition: Script.h:105
float GetWheelSkidInfoCumulative(int wheel) const
Get cumulative skid info.
Definition: RaycastVehicle.cpp:373
Color startColor_
Color for start of trails.
Definition: RibbonTrail.h:223
void ClearScriptAttributes()
Clear attributes to C++ side attributes only.
Definition: ScriptInstance.cpp:620
URHO_CPP14(constexpr) RandomAccessIterator< T > &operator--()
Predecrement the pointer.
Definition: Iter.h:67
const String & GetName() const
Return name.
Definition: Node.h:347
bool removeOnCompletion_
Sets whether this should automatically be removed when it finishes playing.
Definition: AnimationController.h:80
void MixStereoToStereoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix stereo sample to stereo buffer interpolated.
Definition: SoundSource.cpp:1153
void SetBasePriority(float priority)
Set base priority. Default 100 (send updates at full frequency).
Definition: NetworkPriority.cpp:61
void OnDeviceReset() override
Recreate the buffer and restore data if applicable. May be a no-op depending on the API.
Definition: OGLIndexBuffer.cpp:44
VariantMap vars_
User variables.
Definition: Node.h:707
void SetRotation(const Quaternion &rotation)
Set rigid body rotation in world space.
Definition: RigidBody.cpp:249
void * ReserveScratchBuffer(unsigned size)
Reserve a CPU-side scratch buffer.
Definition: Graphics.cpp:399
bool WriteFloat(float value)
Write a float.
Definition: Serializer.cpp:81
float GetRotationDecay() const
Retrieves the rotation decay factor. See SetRotationDecay() for info.
Definition: IKEffector.cpp:200
void Clip(const IntRect &rect)
Definition: Rect.cpp:40
IntVector2 lastNumVertices_
Terrain size in vertices at the time of last update.
Definition: Terrain.h:277
DebugHud * CreateDebugHud()
Create the debug hud.
Definition: Engine.cpp:542
WeakPtr< Scene > scene_
Scene.
Definition: Connection.h:299
IntVector2 viewSize_
Viewport size.
Definition: View.h:348
Vector3 start_
Start position.
Definition: DebugRenderer.h:58
Allocator node.
Definition: Allocator.h:54
bool IsResolveDirty() const
Return whether multisampled rendertarget needs resolve.
Definition: RenderSurface.h:120
unsigned maxTriangles_
Maximum number of triangles.
Definition: OcclusionBuffer.h:195
void StoreObject(const XMLElement &objectElem, const SharedPtr< TileMapObject2D > &object, const TileMapInfo2D &info, bool isTile=false)
Store object.
Definition: TmxFile2D.cpp:249
void SetFrequencyHz(float frequencyHz)
Set frequency Hz.
Definition: ConstraintMouse2D.cpp:87
void SetChecked(bool enable)
Set checked state.
Definition: CheckBox.cpp:91
const Variant & GetMetadata(const StringHash &key) const
Get attribute metadata.
Definition: Attribute.h:89
RayQueryLevel level_
Raycast detail level.
Definition: OctreeQuery.h:254
String error_
Error string. Empty if no error.
Definition: HttpRequest.h:89
bool SetData(const void *data)
Set all data in the buffer.
Definition: OGLIndexBuffer.cpp:78
void SetViewport(unsigned index, Viewport *viewport)
Set a backbuffer viewport.
Definition: Renderer.cpp:285
bool IsCompressed() const
Return whether the files are compressed.
Definition: PackageFile.h:83
StringVector GetStringVector() const
Return a string vector attribute, or empty if missing.
Definition: XMLElement.cpp:917
int readHandle_
Pipe handle.
Definition: NamedPipe.h:79
unsigned numTriangles_
Number of rendered triangles.
Definition: OcclusionBuffer.h:193
@ USE_NO_EVENT
Bitmask for not using any events.
Definition: LogicComponent.h:36
void SetTrigger(unsigned index, const AnimationTriggerPoint &trigger)
Set a trigger point at index.
Definition: Animation.cpp:331
bool IsSolverTreeValid() const
Returns false if calling Solve() would cause the IK library to abort. Urho3D's error handling philoso...
Definition: IKSolver.cpp:501
void Clip(const Plane &plane)
Clip with a plane.
Definition: Polyhedron.cpp:97
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: Text3D.cpp:138
void SetAreaCost(unsigned areaID, float cost)
Set the cost of an area.
Definition: NavigationMesh.cpp:861
Vector2 ReadVector2()
Read a Vector2.
Definition: Deserializer.cpp:166
Color(const Vector3 &color)
Construct from 3-vector.
Definition: Color.h:105
void SetMaxVelocity(float velocity)
Set particle maximum velocity.
Definition: ParticleEffect.cpp:555
bool ToggleFullscreen()
Toggle between full screen and windowed mode. Return true if successful.
Definition: Graphics.cpp:169
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: Animatable.cpp:213
StaticModel(Context *context)
Construct.
Definition: StaticModel.cpp:47
unsigned GetLodLevel() const
Return model LOD level.
Definition: CollisionShape.h:239
int dragConfirmedCount_
Number of elements in dragElements_ with dragPending = false.
Definition: UI.h:431
VariantMap nodeCollisionData_
Preallocated event data map for node collision events.
Definition: PhysicsWorld.h:336
unsigned ToUIntMask(const ChannelMask &mask) const
Return color packed to a 32-bit integer with arbitrary channel mask. Components are clamped to [0,...
Definition: Color.cpp:43
Iterator Find(const T &key)
Return iterator to the key, or end iterator if not found.
Definition: HashSet.h:462
SpriteSheet2D * GetSpriteSheet() const
Return sprite sheet.
Definition: Sprite2D.h:80
void ClearTransformSources()
Clear remembered transform shader parameter sources.
Definition: OGLGraphics.cpp:1483
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Ptr.h:504
CollisionEventMode GetCollisionEventMode() const
Return collision event signaling mode.
Definition: RigidBody.h:226
float GetMaxMotorTorque() const
Return maxMotor torque.
Definition: ConstraintWheel2D.h:68
void Remove()
Remove from the parent element. If no other shared pointer references exist, causes immediate deletio...
Definition: UIElement.cpp:1421
void SetPivot(const Vector2 &pivot)
Set pivot relative to element's size (from 0 to 1, where 0.5 is center). Overrides horizontal & verti...
Definition: UIElement.cpp:799
void SetBringToFront(bool enable)
Set whether should be brought to front when focused.
Definition: UIElement.cpp:859
void MarkDecalsDirty()
Mark decals and the bounding box dirty.
Definition: DecalSet.cpp:992
HashMap(const std::initializer_list< Pair< T, U >> &list)
Aggregate initialization constructor.
Definition: HashMap.h:241
String spriteSheetFilePath_
Sprite sheet file path.
Definition: AnimationSet2D.h:116
const Vector2 & GetOwnerBodyGroundAnchor() const
Return owner body ground anchor.
Definition: ConstraintPulley2D.h:55
const std::type_info & typeInfo_
Type info.
Definition: Variant.h:210
int GetHeight() const
Return height.
Definition: TmxFile2D.h:57
~SimpleNavBuildData() override
Descturctor.
Definition: NavBuildData.cpp:58
unsigned GetNumRows() const
Return number of rows in the resultset or 0 if the number of rows is not available.
Definition: ODBCResult.h:48
unsigned Size() const
Return size of vector.
Definition: Vector.h:531
void RequestPackage(const String &name, unsigned fileSize, unsigned checksum)
Initiate a package download.
Definition: Connection.cpp:1545
bool isBase_
Base batch flag. This tells to draw the object fully without light optimizations.
Definition: Batch.h:86
static void RegisterObject(Context *context)
Register object factory.
Definition: ValueAnimation.cpp:64
static JSONValueType GetValueTypeFromName(const String &typeName)
Return a value type from name; null if unrecognized.
Definition: JSONValue.cpp:633
HttpRequestState GetState() const
Return connection state.
Definition: HttpRequest.cpp:287
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: StaticModel.cpp:132
unsigned dummyColorFormat_
Shadow map dummy color texture format.
Definition: Graphics.h:771
Node * Down() const
Return next node in the bucket.
Definition: HashMap.h:103
int GetTolerance() const
Return the pool tolerance.
Definition: WorkQueue.h:112
Matrix3x4 customWorldTransform_
Custom world transform for facing the camera automatically.
Definition: Text3D.h:202
PrimitiveType
Primitive type.
Definition: GraphicsDefs.h:44
float ProjectOntoAxis(const Vector2 &axis) const
Project vector onto axis.
Definition: Vector2.h:313
bool EndCall(int numReturns=0)
End call and actually execute the function. The return values, if any, are still left in the stack wh...
Definition: LuaFunction.cpp:85
ResourceRefList materialsAttr_
Material list attribute.
Definition: CustomGeometry.h:176
Zone * farClipZone_
Zone at far clip plane.
Definition: View.h:328
Sprite2D * GetSprite() const
Return sprite.
Definition: ParticleEmitter2D.cpp:145
DragAndDropMode
Definition: UIElement.h:104
float GetRowHeight() const
Return row height.
Definition: Text.h:172
Definition: NavBuildData.h:87
void SetWorldPosition(const Vector3 &position)
Set constraint world space position. Resets both own and other body relative position,...
Definition: Constraint.cpp:261
float GetElapsedTime()
Return elapsed time from program start as seconds.
Definition: Timer.cpp:157
void RemoveAllItems()
Remove all items.
Definition: DropDownList.cpp:178
AttributeInfo * GetAttribute(StringHash objectType, const char *name)
Return a specific attribute description for an object, or null if not found.
Definition: Context.cpp:389
~IndexBuffer() override
Destruct.
Definition: IndexBuffer.cpp:54
void MarkPositionsDirty()
Mark billboard vertex buffer to need an update.
Definition: BillboardSet.cpp:767
bool RequestNeededPackages(unsigned numPackages, MemoryBuffer &msg)
Check a package list received from server and initiate package downloads as necessary....
Definition: Connection.cpp:1474
2D mouse constraint component.
Definition: ConstraintMouse2D.h:31
void MarkEndPointDirty()
Mark end point dirty.
Definition: OffMeshConnection.h:76
float agentRadius_
Navigation agent radius.
Definition: NavigationMesh.h:320
unsigned GetNumPrimitives() const
Return number of primitives drawn this frame.
Definition: Graphics.h:402
Variant(bool value)
Construct from a bool.
Definition: Variant.h:361
void PushUserType(const T &userType, const char *typeName)
Push user type to stack.
Definition: LuaFunction.h:86
unsigned LengthUTF8() const
Calculate number of characters in UTF8 content.
Definition: Str.cpp:780
unsigned shadowMask_
Shadow mask.
Definition: Drawable.h:357
String ReadString()
Read a null-terminated string.
Definition: Deserializer.cpp:247
float GetWheelDampingRelaxation(int wheel) const
Get wheel damping relaxation.
Definition: RaycastVehicle.cpp:487
const TypeInfo * baseTypeInfo_
Base class type info.
Definition: Object.h:66
bool GetEnableLimit() const
Return enable limit.
Definition: ConstraintPrismatic2D.h:67
void Set(unsigned buttons, bool down=true)
Set or release buttons.
Definition: Controls.h:43
void SetMaxSubSteps(int num)
Set maximum number of physics substeps per frame. 0 (default) is unlimited. Positive values cap the a...
Definition: PhysicsWorld.cpp:327
Intersection IsInsideFast(const BoundingBox &box) const
Test if another bounding box is (partially) inside or outside.
Definition: BoundingBox.h:303
b2Fixture * fixture_
Box2D fixture.
Definition: CollisionShape2D.h:114
JSONNumberType
JSON number type.
Definition: JSONValue.h:50
~Texture3D() override
Destruct.
Definition: Texture3D.cpp:52
Iterator Begin()
Return iterator to the first element.
Definition: List.h:393
const IntRect & GetRect() const
Return view rectangle. A zero rectangle (0 0 0 0) means to use the rendertarget's full dimensions....
Definition: Viewport.h:78
float basePriority_
Base priority.
Definition: NetworkPriority.h:69
unsigned short ReadUShort()
Read a 16-bit unsigned integer.
Definition: Deserializer.cpp:105
Animatable * FindAttributeAnimationTarget(const String &name, String &outName) override
Find target of an attribute animation from object hierarchy by name.
Definition: Node.cpp:1913
const T & GetValue() const
Get const value.
Definition: Variant.h:239
bool resolveDirty_
Multisampling resolve needed -flag.
Definition: Texture.h:243
void SetUpdateInvisible(bool enable)
Set whether to update when particles are not visible.
Definition: ParticleEffect.cpp:450
void SetSpeed(float speed)
Set speed.
Definition: ValueAnimationInfo.h:60
float length_
Animation length.
Definition: Animation.h:197
virtual void OnPositionSet(const IntVector2 &newPosition)
React to position change.
Definition: UIElement.h:195
int tileSize_
Tile size.
Definition: NavigationMesh.h:312
void Define(const Vector3 ¢er, float radius)
Define from center and radius.
Definition: Sphere.h:95
void Roll(float angle, TransformSpace space=TS_LOCAL)
Rotate around the Z axis.
Definition: Node.cpp:665
@ DD_SOURCE
Drag and drop source flag.
Definition: UIElement.h:109
Vector2 TileIndexToPosition(int x, int y) const
Convert tile index to position.
Definition: TileMapDefs2D.cpp:71
bool EvaluateToBool(const XMLElement &element) const
Evaluate XPath query and expecting a boolean return value.
Definition: XMLElement.cpp:1162
bool GetSearchPackagesFirst() const
Return whether when getting resources should check package files or directories first.
Definition: ResourceCache.h:193
Polyhedron(const BoundingBox &box)
Construct from a bounding box.
Definition: Polyhedron.h:58
bool desktopSupport_
Cached desktop GPU support flag.
Definition: Technique.h:280
virtual void RemoveTile(const IntVector2 &tile)
Remove tile from navigation mesh.
Definition: NavigationMesh.cpp:568
void SetVertexShaderDefines(const String &defines)
Set vertex shader defines. Separate multiple defines with spaces.
Definition: Technique.cpp:147
String ToString() const
Return an address:port string.
Definition: Connection.cpp:1121
bool GetDrawNavAreas() const
Return whether to draw NavArea components.
Definition: NavigationMesh.h:275
void SetNavigationMesh(NavigationMesh *navMesh)
Assigns the navigation mesh for the crowd.
Definition: CrowdManager.cpp:256
LoopMode
Loop Mode.
Definition: SpriterInstance2D.h:38
int getDebugMode() const override
Return debug draw flags.
Definition: PhysicsWorld.h:159
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: CollisionShape.cpp:906
unsigned navigationMeshId_
The NavigationMesh component Id for pending crowd creation.
Definition: CrowdManager.h:187
Vector2 patchWorldSize_
Size of a patch on the XZ-plane.
Definition: Terrain.h:273
float shadowSoftness_
Shadow softness, only works when SHADOWQUALITY_BLUR_VSM is used.
Definition: Renderer.h:550
int width_
Width.
Definition: Image.h:216
float detailSampleMaxError_
Detail sampling maximum error.
Definition: NavigationMesh.h:336
XMLElement GetNext(const String &name=String::EMPTY) const
Return next sibling element.
Definition: XMLElement.cpp:622
float radialAcceleration_
Radial acceleration.
Definition: ParticleEmitter2D.h:60
WeakPtr< Scene > scene_
Associated scene for shader parameter animation updates.
Definition: Material.h:327
bool SetAnimation(int index, LoopMode loopMode=Default)
Set current animation.
Definition: SpriterInstance2D.cpp:84
void AddTag(const String &tag)
Add a tag.
Definition: UIElement.cpp:1465
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: StaticModelGroup.cpp:106
bool IsInside(const Ray &ray) const
Return whether or not the ray is inside geometry.
Definition: Geometry.cpp:329
bool IsObjectAlive() const
Returns whether the ScriptObject is still alive. Will return true if there is no reference and object...
Definition: ScriptFile.cpp:1044
bool SetMatrix3x4(const String &name, const Matrix3x4 &value)
Set a Matrix3x4 attribute.
Definition: XMLElement.cpp:553
File(Context *context)
Construct.
Definition: File.cpp:68
unsigned GetShadersLoadedFrameNumber() const
Return last shaders loaded frame number.
Definition: Technique.h:102
Node * GetWheelNode(int wheel) const
Get node of the wheel.
Definition: RaycastVehicle.cpp:601
const Frustum & GetFrustum() const
Return frustum in world space.
Definition: Camera.cpp:284
bool SetSize(int width, int height, bool threaded)
Set occlusion buffer size and whether to reserve multiple buffers for threading optimization.
Definition: OcclusionBuffer.cpp:61
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: AnimatedModel.cpp:945
void SetCylinder(float diameter, float height, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a cylinder.
Definition: CollisionShape.cpp:620
void SetTemperature(float temperature)
Set temperature of the light in Kelvin. Modulates the light color when "use physical values" is enabl...
Definition: Light.cpp:290
static const IntVector3 UP_FORWARD_RIGHT
(1, 2, 0) coordinate system.
Definition: RaycastVehicle.h:176
Vector3 baseVelocity_
Base velocity applied to the trail.
Definition: RibbonTrail.h:190
Color(float r, float g, float b, float a) noexcept
Construct from RGBA values.
Definition: Color.h:84
void SetVertex2(const Vector2 &vertex)
Set vertex 2.
Definition: CollisionEdge2D.cpp:66
Geometry * GetGeometry() const
Return visible geometry.
Definition: TerrainPatch.cpp:248
void BlurShadowMap(View *view, Texture2D *shadowMap, float blurScale)
Blur the shadow map.
Definition: Renderer.cpp:1962
float projOffsetScaleY_
Combined Y projection and viewport transform.
Definition: OcclusionBuffer.h:225
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ParticleEffect.cpp:101
void ResetDepthStencil()
Reset depth-stencil surface.
Definition: OGLGraphics.cpp:1626
Work queue subsystem for multithreading.
Definition: WorkQueue.h:68
bool readdBody_
Readd body to world flag.
Definition: RigidBody.h:305
int GetHeight() const
Return height (for tile layer only).
Definition: TileMapLayer2D.cpp:279
const float * Data() const
Return float data.
Definition: Vector2.h:368
Vector< Variant > VariantVector
Vector of variants.
Definition: Variant.h:80
int GetBaseIndent() const
Return base indent.
Definition: ListView.h:156
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: UnknownComponent.cpp:192
void Patch(XMLFile *patchFile)
Patch the XMLFile with another XMLFile. Based on RFC 5261.
Definition: XMLFile.cpp:191
bool visible_
Visible flag.
Definition: Terrain.h:293
void SetTextureFrame(unsigned index, const TextureFrame &textureFrame)
Set number of texture animation frames.
Definition: ParticleEffect.cpp:714
HashMap< unsigned, WeakPtr< Component > > components_
Components.
Definition: SceneResolver.h:56
UIElement * GetItem(unsigned index) const
Return item at index.
Definition: DropDownList.cpp:203
Sphere() noexcept
Construct undefined.
Definition: Sphere.h:39
TrailType trailType_
Trail type.
Definition: RibbonTrail.h:188
float AbsDotProduct(const Vector3 &rhs) const
Calculate absolute dot product.
Definition: Vector3.h:354
void SortColorFrames()
Sort the list of color frames based on time.
Definition: ParticleEffect.cpp:658
float GetTimeStep() const
Return current frame timestep as seconds.
Definition: Timer.h:99
IntRect resizeBorder_
Resize area width at edges.
Definition: Window.h:149
float RollAngle() const
Return roll angle in degrees.
Definition: Quaternion.cpp:219
void SetDisabledOffset(const IntVector2 &offset)
Set offset to image rectangle used when disabled.
Definition: BorderImage.cpp:123
PrimitiveType type_
Primitive type.
Definition: Model.h:96
ShaderVariation * GetPixelShader() const
Return current pixel shader.
Definition: Graphics.h:473
void AddNode(const pugi::xml_node &patch, const pugi::xpath_node &original) const
Add a node in the Patch.
Definition: XMLFile.cpp:277
bool used_
Used flag.
Definition: FontFace.h:60
const AttributeInfo & attributeInfo_
Attribute information.
Definition: Animatable.h:59
SLNet::RakPeerInterface * rakPeer_
SLikeNet peer instance for server connection.
Definition: Network.h:150
Component * GetParentComponent(StringHash type, bool fullTraversal=false) const
Return component in parent node. If there are several, returns the first. May optional traverse up to...
Definition: Node.cpp:1422
bool LoadXML(const XMLElement &source)
Load from XML data. Return true if successful.
Definition: ValueAnimation.cpp:89
const FontGlyph * glyph_
Glyph.
Definition: Text.h:71
const ResourceRefList & GetMaterialsAttr() const
Return materials attribute.
Definition: StaticModel.cpp:391
Matrix2() noexcept
Construct an identity matrix.
Definition: Matrix2.h:35
String compilerOutput_
Shader compile error string.
Definition: ShaderVariation.h:176
const BiasParameters & GetDepthBias() const
Return depth bias.
Definition: Material.h:232
void SetTargetVelocity(const Vector3 &velocity)
Submit a new target velocity request for this agent.
Definition: CrowdAgent.cpp:345
Vector3 GetVector3(const String &name) const
Return a Vector3 attribute, or zero vector if missing.
Definition: XMLElement.cpp:955
Variant(float value)
Construct from a float.
Definition: Variant.h:367
void SetSwapXY(bool swapXY)
Set swap X and Y.
Definition: StaticSprite2D.cpp:152
ConstraintRope2D(Context *context)
Construct.
Definition: ConstraintRope2D.cpp:37
void RemoveShaderParameter(const String &name)
Remove shader parameter.
Definition: Material.cpp:1124
ResourceRef GetFontAttr() const
Return font attribute.
Definition: Text3D.cpp:566
bool kinematic_
Kinematic flag.
Definition: RigidBody.h:299
SDL_GameController * controller_
SDL game controller.
Definition: Input.h:113
AutoRemoveMode autoRemove_
Automatic removal mode.
Definition: ParticleEmitter.h:154
bool IsEditable() const
Return whether value is editable through input.
Definition: UIElement.h:517
PODVector< Zone * > zones_
Visible zones.
Definition: View.h:392
const String & GetApiName() const
Return graphics API name.
Definition: Graphics.h:339
bool autoVisibleOnError_
Auto visible on error flag.
Definition: Console.h:143
float priorityAcc_
Interest management priority accumulator.
Definition: ReplicationState.h:169
bool Defined() const
Return true if this rect is defined via a previous call to Define() or Merge().
Definition: Rect.h:194
ConstIterator()=default
Construct.
void HandleUpdate(StringHash eventType, VariantMap &eventData)
Handle application update event.
Definition: ScriptFile.cpp:988
unsigned GetNumViewports() const
Return number of viewports.
Definition: RenderSurface.h:81
void SetShadowCullMode(CullMode mode)
Set culling mode for shadows.
Definition: Material.cpp:1079
bool Erase(T *element, T *previous)
Erase an element when the previous element is known (optimization). Return true if successful.
Definition: LinkedList.h:147
~MessageBox() override
Destruct.
Definition: MessageBox.cpp:102
PODVector< UIElement * > GetItems() const
Return all items.
Definition: DropDownList.cpp:208
unsigned maxLodLevels_
Maximum number of LOD levels.
Definition: Terrain.h:287
SharedArrayPtr< float > GetHeightData() const
Return raw height data.
Definition: Terrain.h:157
BatchQueue litBatches_
Lit geometry draw calls, non-base (additive).
Definition: Batch.h:303
void SetControlledIdAttr(unsigned value)
Set Controlled Node ID attribute.
Definition: SplinePath.cpp:277
HashSet< StringHash > blacklistedRemoteEvents_
Remote event fixed blacklist.
Definition: Network.h:160
void Render()
Render. Called by Engine.
Definition: Renderer.cpp:692
void HandleTouchBegin(StringHash eventType, VariantMap &eventData)
Handle touch begin event.
Definition: UI.cpp:1883
void SetBlendMode(BlendMode mode)
Set blend mode.
Definition: Sprite.cpp:213
String apiName_
Graphics API name.
Definition: Graphics.h:863
int GetRowHeight() const
Return row height.
Definition: Text3D.cpp:468
Iterator & operator--()
Predecrement the pointer.
Definition: HashMap.h:134
bool anisotropySupport_
Anisotropic filtering support flag.
Definition: Graphics.h:743
void SetOctant(Octant *octant)
Move into another octree octant.
Definition: Drawable.h:326
Variable that supports a fixed set of types.
Definition: Variant.h:324
void SetMaxSideSlipSpeed(float speed)
Set side speed which is considered sliding.
Definition: RaycastVehicle.cpp:358
bool RemoveAttribute(const String &name=String::EMPTY)
Remove an attribute by name. Return true if successful.
Definition: XMLElement.cpp:206
Vector< PODVector< Drawable * > > tempDrawables_
Per-thread octree query results.
Definition: View.h:388
ConstraintRevolute2D(Context *context)
Construct.
Definition: ConstraintRevolute2D.cpp:37
Vector(Vector< T > &&vector)
Move-construct from another vector.
Definition: Vector.h:89
bool GetBorderless() const
Return whether window is borderless.
Definition: Graphics.h:363
void SetMaxParticles(int maxParticles)
Set max particles.
Definition: ParticleEffect2D.cpp:384
unsigned dragBeginCursor_
Drag begin cursor position.
Definition: LineEdit.h:142
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: Animatable.cpp:179
Vector3 position_
Position.
Definition: RibbonTrail.h:49
RigidBody * GetOtherBody() const
Return the other rigid body. May be null if connected to the static world.
Definition: Constraint.h:113
void GotoPrev()
Go to the previous node.
Definition: ListBase.h:82
float GetMinPriority() const
Return minimum priority.
Definition: NetworkPriority.h:59
bool IsNaN(T value)
Check whether a floating point value is NaN.
Definition: MathDefs.h:113
void SetPosition(const Vector3 &position)
Set constraint position relative to own body.
Definition: Constraint.cpp:177
void SetMaxLength(float maxLength)
Set max length.
Definition: ConstraintRope2D.cpp:80
~SceneResolver()
Destruct.
bool pvrtcTextureSupport_
PVRTC formats support flag.
Definition: Graphics.h:751
static void RegisterObject(Context *context)
Register object factory.
Definition: Slider.cpp:62
int GetInt() const
Return int.
Definition: PListFile.cpp:192
void SetFixedWidthResizing(bool enable)
Set whether resizing width is fixed.
Definition: Window.cpp:262
LinkedListNode * next_
Pointer to next node.
Definition: LinkedList.h:45
void SetShadowMask(unsigned mask)
Set shadow mask. Is and'ed with light's light mask and zone's shadow mask to see if the object should...
Definition: Drawable.cpp:203
float AbsDotProduct(const Vector4 &rhs) const
Calculate absolute dot product.
Definition: Vector4.h:174
PODVector(unsigned size, const T &value)
Construct with initial size and default value.
Definition: Vector.h:702
unsigned GetCollisionMask() const
Return collision mask.
Definition: RigidBody.h:223
unsigned GetIntFrequency() const
Return default frequency as an integer.
Definition: SoundStream.h:57
bool SetVariantVector(const VariantVector &value)
Set a variant vector attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:473
int Refs() const
Return the array's reference count, or 0 if the pointer is null.
Definition: ArrayPtr.h:162
float lightLength_
Length of the light source. If above 0 and radius is above 0 it will create a tube light....
Definition: Light.h:355
const TypeInfo * GetBaseTypeInfo() const
Return base type info.
Definition: Object.h:58
bool LoadAsyncXML(File *file, LoadMode mode=LOAD_SCENE_AND_RESOURCES)
Load from an XML file asynchronously. Return true if started successfully. The LOAD_RESOURCES_ONLY mo...
Definition: Scene.cpp:382
bool IsCompleted(unsigned priority) const
Return whether all work with at least the specified priority is finished.
Definition: WorkQueue.cpp:296
Point octree query.
Definition: OctreeQuery.h:73
Iterator Find(const T &value)
Return iterator to value, or to the end if not found.
Definition: Vector.h:1092
void SetWidth(float width)
Scale UI to the specified width in pixels.
Definition: UI.cpp:745
bool SaveDefaultAttributes() const override
Return whether should save default-valued attributes into XML. Always save node transforms for readab...
Definition: Node.h:105
void Stop()
Suspend sound output.
Definition: Audio.cpp:157
void SetNavigationQuality(NavigationQuality val)
Set the agent's navigation quality.
Definition: CrowdAgent.cpp:453
float GetAngularDamping() const
Return angular velocity damping factor.
Definition: RigidBody.cpp:658
void SetTimeScale(float scale)
Set update time scale. 1.0 = real time (default).
Definition: Scene.cpp:649
void SetRampTexture(Texture *texture)
Set range attenuation texture.
Definition: Light.cpp:404
bool ReadTile(Deserializer &source, bool silent)
Read tile data to the navigation mesh.
Definition: NavigationMesh.cpp:1267
IntVector2(const int *data) noexcept
Construct from an int array.
Definition: Vector2.h:50
ConstIterator Begin() const
Return const iterator to the beginning.
Definition: Vector.h:494
void Resolve()
Resolve component and node ID attributes and reset.
Definition: SceneResolver.cpp:57
void Resume()
Resume worker threads.
Definition: WorkQueue.cpp:234
Light(Context *context)
Construct.
Definition: Light.cpp:92
~AnimationController() override
Destruct.
DbResult Execute(const String &sql, bool useCursorEvent=false)
Execute an SQL statements immediately. Send E_DBCURSOR event for each row in the resultset when useCu...
Definition: ODBCConnection.cpp:73
bool IsEmitting() const
Return whether is currently emitting.
Definition: RibbonTrail.h:167
Node * CreateChild(const String &name=String::EMPTY, CreateMode mode=REPLICATED, unsigned id=0, bool temporary=false)
Create a child scene node (with specified ID if provided).
Definition: Node.cpp:792
Single-line text editor UI element.
Definition: LineEdit.h:34
String Substring(unsigned pos) const
Return a substring from position to end.
Definition: Str.cpp:490
~FileSelector() override
Destruct.
Definition: FileSelector.cpp:133
void AddInstanceNode(Node *node)
Add an instance scene node. It does not need any drawable components of its own.
Definition: StaticModelGroup.cpp:273
EmitterType emitterType_
Emitter shape.
Definition: ParticleEffect.h:375
void SetOpacity(float opacity)
Set opacity.
Definition: UIElement.cpp:853
void SetTags(const StringVector &tags)
Set tags. Old tags are overwritten.
Definition: Node.cpp:345
List of typed resource references.
Definition: Variant.h:137
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: Renderer2D.h:52
Vector2 normal_
Hit worldspace normal.
Definition: PhysicsWorld2D.h:49
void SetRatio(float ratio)
Set ratio.
Definition: ConstraintPulley2D.cpp:108
const HashMap< String, SharedPtr< Sprite2D > > & GetSpriteMapping() const
Return sprite mapping.
Definition: SpriteSheet2D.h:66
NavigationPushiness navPushiness_
Agent's navigation pushiness. The higher the setting, the stronger the agent pushes its colliding nei...
Definition: CrowdAgent.h:230
bool WriteIntRect(const IntRect &value)
Write an IntRect.
Definition: Serializer.cpp:91
const Vector< SourceBatch > & GetBatches() const
Return draw call source data.
Definition: Drawable.h:224
const IntVector2 & GetPosition() const
Return position.
Definition: UIElement.h:409
bool nodesDirty_
Whether node IDs have been set and nodes should be searched for during ApplyAttributes.
Definition: StaticModelGroup.h:94
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: AnimationController.cpp:911
SharedPtr< File > file_
Source file.
Definition: Connection.h:94
unsigned long long ReadUInt64()
Read a 64-bit unsigned integer.
Definition: Deserializer.cpp:91
bool IsProjectionValid() const
Return if projection parameters are valid for rendering and raycasting.
Definition: Camera.cpp:580
void IncScriptNestingLevel()
Increase script nesting level.
Definition: Script.h:113
void SetMobileNormalOffsetMul(float mul)
Set shadow normal offset multiplier for mobile platforms to counteract possible worse shadow map prec...
Definition: Renderer.cpp:507
SharedPtr< File > GetFile(const String &name, bool sendEventOnFailure=true)
Open and return a file from the resource load paths or from inside a package file....
Definition: ResourceCache.cpp:488
bool operator!=(const List< T > &rhs) const
Test for inequality with another list.
Definition: List.h:260
ResourceRef GetModelAttr() const
Return model attribute.
Definition: CollisionShape.cpp:884
T & operator*() const
Dereference the object.
Definition: Ptr.h:138
void DynamicCast(const SharedPtr< U > &rhs)
Perform a dynamic cast from a shared pointer of another type.
Definition: Ptr.h:195
bool HasAnimation(const String &animationName) const
Check has animation.
Definition: AnimationSet2D.cpp:182
float GetAreaCost(unsigned areaID) const
Get the current cost of an area.
Definition: NavigationMesh.cpp:872
void OnPositionSet(const IntVector2 &newPosition) override
React to position change.
Definition: Sprite.cpp:130
void SetMaskBits(int maskBits)
Set filter mask bits.
Definition: CollisionShape2D.cpp:107
Tile2D()
Construct.
Definition: TileMapDefs2D.cpp:163
Spriter instance.
Definition: SpriterInstance2D.h:46
UniquePtr< TriangleMeshInterface > meshInterface_
Bullet triangle mesh interface.
Definition: CollisionShape.h:84
bool isDesktop_
Require desktop level hardware flag.
Definition: Technique.h:164
void OnNodeSet(Node *node) override
Handle scene node being assigned at creation.
Definition: LogicComponent.cpp:76
bool IsServerRunning() const
Return whether the server is running.
Definition: Network.cpp:683
HashSet< String > allowedPaths_
Allowed directories.
Definition: FileSystem.h:117
void SetAngularVelocity(const Vector3 &velocity)
Set angular velocity.
Definition: RigidBody.cpp:336
Screen mode parameters.
Definition: Graphics.h:81
bool IsLooped(const String &name) const
Return animation looping.
Definition: AnimationController.cpp:513
ShapeType
Collision shape type.
Definition: CollisionShape.h:52
String vsExtraDefines_
Vertex shader extra defines.
Definition: Batch.h:267
void SetCursorPosition(unsigned position)
Set cursor position.
Definition: LineEdit.cpp:491
Obstacle(Context *context)
Construct.
Definition: Obstacle.cpp:40
rcContourSet * contourSet_
Recast contour set.
Definition: NavBuildData.h:95
void SetViewOverrideFlags(ViewOverrideFlags flags)
Set view override flags.
Definition: Camera.cpp:183
float GetAngularRestThreshold() const
Return angular velocity deactivation threshold.
Definition: RigidBody.cpp:653
float maxZ_
Maximum Z value of the visible scene.
Definition: View.h:358
bool debugDepthTest_
Debug draw depth test mode.
Definition: PhysicsWorld.h:358
void SetMinMaxZ(float minZ, float maxZ)
Set view-space depth bounds.
Definition: Drawable.h:232
Iterator Insert(const Iterator &dest, const T *start, const T *end)
Insert elements.
Definition: Vector.h:331
double ReadDouble()
Read a double.
Definition: Deserializer.cpp:131
void UpdateAnchoring()
Update anchored size & position. Only called when anchoring is enabled.
Definition: UIElement.cpp:2040
TextureFilterMode GetFilterMode() const
Return filtering mode.
Definition: Texture.h:91
unsigned CreateFramebuffer()
Create a framebuffer using either extension or core functionality. Used only on OpenGL.
Definition: OGLGraphics.cpp:3255
Vector2 anchor_
Anchor.
Definition: ConstraintWeld2D.h:66
Drawable * drawable_
Drawable.
Definition: OctreeQuery.h:215
float speed_
Speed.
Definition: AnimatedSprite2D.h:128
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: OffMeshConnection.cpp:76
const ResourceRefList & GetMaterialsAttr() const
Return materials attribute.
Definition: CustomGeometry.cpp:806
const Matrix3x4 & GetTransform() const
Update and return rendering transform, also used to transform child sprites.
Definition: Sprite.cpp:218
bool HasMasterGain(const String &type) const
Return whether the specified master gain has been defined.
Definition: Audio.h:102
ResourceRef GetTextureAttr() const
Return texture attribute.
Definition: BorderImage.cpp:226
bool WriteUByte(unsigned char value)
Write an 8-bit unsigned integer.
Definition: Serializer.cpp:71
const Vector2 & GetPivot() const
Return pivot.
Definition: UIElement.h:472
void RemoveAttributeAnimation(const String &name)
Remove attribute animation. Same as calling SetAttributeAnimation with a null pointer.
Definition: Animatable.cpp:418
float GetSpriteTextureEdgeOffset() const
Return texture edge offset, in pixels.
Definition: TmxFile2D.h:205
void BoxFilter(unsigned char *dest, size_t destSize, const unsigned char *src, size_t srcSize)
Smooth one row of a horizontally oversampled glyph image.
Definition: FontFaceFreeType.cpp:351
Vector< T > & operator=(const Vector< T > &rhs)
Assign from another vector.
Definition: Vector.h:111
bool GetDrawRectangle(Rect &rect, bool flipX=false, bool flipY=false) const
Return draw rectangle.
Definition: Sprite2D.cpp:143
const Color & GetDerivedColor() const
Return derived color. Only valid when no gradient.
Definition: UIElement.cpp:1683
void CloneGeometries()
Clone geometries for vertex morphing.
Definition: AnimatedModel.cpp:1105
HorizontalAlignment GetHorizontalAlignment() const
Return horizontal alignment.
Definition: Text3D.cpp:403
void Complete(unsigned priority)
Finish all queued work which has at least the specified priority. Main thread will also execute prior...
Definition: WorkQueue.cpp:244
InterpolationMode
Definition: Spline.h:36
Node * EraseNode(Node *node)
Erase and free a node. Return pointer to the next node, or to the end if could not erase.
Definition: List.h:451
bool IsCursorMovable() const
Return whether can move cursor with arrows or mouse.
Definition: LineEdit.h:105
static void RegisterObject(Context *context)
Register object factory.
Definition: Font.cpp:71
bool lineAntiAlias_
Line antialiasing enable flag.
Definition: Graphics.h:819
Object * GetEventSender() const
Return active event sender. Null outside event handling.
Definition: Object.cpp:426
void SendViewEvent(StringHash eventType)
Send a view update or render related event through the Renderer subsystem. The parameters are the sam...
Definition: View.cpp:3168
float range_
Slider range.
Definition: Slider.h:106
VariantMap eventData_
Event data.
Definition: ValueAnimation.h:64
Vector3 GetWorldPosition() const
Return constraint world position, calculated from own body.
Definition: Constraint.cpp:336
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: DecalSet.cpp:654
void Free(T *object)
Destruct and free an object.
Definition: Allocator.h:116
Sound(Context *context)
Construct.
Definition: Sound.cpp:63
void SetSouthNeighbor(Terrain *south)
Set south (negative Z) neighbor terrain for seamless LOD changes across terrains.
Definition: Terrain.cpp:283
CustomVariantValue * GetCustomVariantValuePtr()
Return pointer to custom variant value.
Definition: Variant.h:1292
ScriptFile * file_
Parent script file.
Definition: ScriptFile.h:178
bool LoadJSON(const JSONValue &source)
Load from JSON data. Return true if successful.
Definition: ValueAnimation.cpp:151
Quaternion(const Vector3 &start, const Vector3 &end) noexcept
Construct from the rotation difference between two direction vectors.
Definition: Quaternion.h:120
Orientation orientation_
Orientation.
Definition: ProgressBar.h:98
b2PulleyJointDef jointDef_
Box2D joint def.
Definition: ConstraintPulley2D.h:75
~TmxFile2D() override
Destruct.
Definition: TmxFile2D.cpp:382
virtual void ApplyAttributes()
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Serializable.h:76
unsigned GetNumOccluders(bool allViews=false) const
Return number of occluders rendered.
Definition: Renderer.cpp:630
float range_
Range.
Definition: Light.h:375
Two-dimensional vector with integer values.
Definition: Vector2.h:32
bool dynamic_
Dynamic flag.
Definition: VertexBuffer.h:168
bool SetGeometry(unsigned index, unsigned lodLevel, Geometry *geometry)
Set geometry.
Definition: Model.cpp:573
const IntRect & GetIntRect() const
Return an integer rect or empty on type mismatch.
Definition: Variant.h:1253
VertexBuffer * GetVertexBuffer(unsigned index) const
Return current vertex buffer by index.
Definition: OGLGraphics.cpp:2147
float Length() const
Return length.
Definition: Vector3.h:345
Color ambientStartColor_
Cached ambient start color.
Definition: Zone.h:150
void SetReflectionPlane(const Plane &plane)
Set reflection plane in world space for reflection mode.
Definition: Camera.cpp:224
void HandleModelReloadFinished(StringHash eventType, VariantMap &eventData)
Handle model reload finished.
Definition: AnimatedModel.cpp:1433
VerticalAlignment GetVerticalAlignment() const
Return vertical alignment.
Definition: Text3D.cpp:408
void SetNumRows(unsigned rows)
Set number of displayed rows.
Definition: Console.cpp:227
virtual ~RefCounted()
Destruct. Mark as expired and also delete the reference count structure if no outside weak references...
Definition: RefCounted.cpp:39
float Length() const
Return length.
Definition: Vector2.h:153
PODVector< RayQueryResult > & result_
Result vector reference.
Definition: OctreeQuery.h:244
Texture2D * shadowMap_
Shadow map depth texture.
Definition: Batch.h:299
bool NotNull() const
Check if the pointer is not null.
Definition: ArrayPtr.h:156
void SetRotationEnd(float rotationEnd)
Set rotation end.
Definition: ParticleEffect2D.cpp:464
Vector3 Size() const
Return size.
Definition: BoundingBox.h:265
void SetIndexBuffer(IndexBuffer *buffer)
Set the index buffer.
Definition: Geometry.cpp:79
void MarkForUpdate()
Mark for update and octree reinsertion. Update is automatically queued when the drawable's scene node...
Definition: Drawable.cpp:247
Zone * GetDefaultZone() const
Return the default zone.
Definition: Renderer.h:361
Octant * octant_
Octree octant.
Definition: Drawable.h:349
const String & GetProperty(const String &name) const
Return property value.
Definition: TileMapDefs2D.cpp:215
unsigned lockCount_
Lock number of vertices.
Definition: IndexBuffer.h:109
void SetCullCamera(Camera *camera)
Set separate camera to use for culling. Sharing a culling camera between several viewports allows to ...
Definition: Viewport.cpp:79
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: Text3D.h:194
XPath query result set.
Definition: XMLElement.h:319
const Color & GetModalShadeColor() const
Get modal shade color.
Definition: Window.h:119
virtual unsigned GetSize() const
Get size.
Definition: Variant.h:199
XMLElement()
Construct null element.
Definition: XMLElement.cpp:38
Vector< float > wheelSideSlipSpeed_
Wheel side movement speed.
Definition: RaycastVehicle.h:202
bool IsInside(const BoundingBox &box) const
Check whether a bounding box is inside the view frustum.
Definition: DebugRenderer.cpp:641
PODVector< float > vertexData_
UI rendering vertex data.
Definition: UI.h:257
void AddTime(float delta)
Modify time position. Animation triggers will be fired.
Definition: AnimationState.cpp:253
void CalculateSortKey()
Calculate state sorting key, which consists of base pass flag, light, pass and geometry.
Definition: Batch.cpp:162
float lodBias_
LOD bias.
Definition: Camera.h:260
unsigned GetNumTracks() const
Return number of animation tracks.
Definition: Animation.h:172
XMLFile * GetDefaultStyle() const
Return the UI style file.
Definition: DebugHud.cpp:270
AsyncProgress asyncProgress_
Asynchronous loading progress.
Definition: Scene.h:294
String password_
Server/Client password used for connecting.
Definition: Network.h:178
PODVector< Batch * > sortedBatches_
Sorted non-instanced draw calls.
Definition: Batch.h:259
bool IsMovable() const
Return whether is movable.
Definition: Window.h:101
~StaticModel() override
Destruct.
static const IntVector3 UP_RIGHT_FORWARD
(1, 0, 2) coordinate system.
Definition: RaycastVehicle.h:178
Vector2 Scale() const
Return the scaling part.
Definition: Matrix2.h:154
Vector< SharedPtr< Pass > > passes_
Passes.
Definition: Technique.h:282
float GetHalfViewSize() const
Return half view size.
Definition: Camera.cpp:479
bool operator!=(const ListIteratorBase &rhs) const
Test for inequality with another iterator.
Definition: ListBase.h:72
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: CollisionShape2D.cpp:304
void SetTranslation(const Vector3 &translation)
Set translation elements.
Definition: Matrix3x4.h:504
float GetParticleLifeSpan() const
Return particle lifespan.
Definition: ParticleEffect2D.h:149
void SetDelay(float interval)
Set the delay in seconds before file changes are notified. This (hopefully) avoids notifying when a f...
Definition: FileWatcher.cpp:232
virtual void OnEvent(Object *sender, StringHash eventType, VariantMap &eventData)
Handle event.
Definition: Object.cpp:89
float GetShadowFadeDistance() const
Return shadow fade start distance.
Definition: Light.h:265
static const Vector3 FORWARD
(0,0,1) vector.
Definition: Vector3.h:491
bool SetModalElement(UIElement *modalElement, bool enable)
Definition: UI.cpp:235
SharedPtr< VertexBuffer > debugVertexBuffer_
UI debug geometry vertex buffer.
Definition: UI.h:265
bool loading_
Loading flag. During loading bone nodes are not created, as they will be serialized as child nodes.
Definition: AnimatedModel.h:257
static void CopyElements(T *dest, const T *src, unsigned count)
Copy elements from one buffer to another.
Definition: Vector.h:1171
const Plane & GetReflectionPlane() const
Return the reflection plane.
Definition: Camera.h:179
void EndSendEvent()
End event send. Clean up event receivers removed in the meanwhile.
Definition: Context.cpp:468
Variant LinearInterpolation(unsigned index1, unsigned index2, float scaledTime) const
Linear interpolation.
Definition: ValueAnimation.cpp:374
void SetMaxSortedInstances(int instances)
Set maximum number of sorted instances per batch group. If exceeded, instances are rendered unsorted.
Definition: Renderer.cpp:481
Vector3 Scale() const
Return the scaling part.
Definition: Matrix3.h:193
float distance_
Hit distance from ray origin.
Definition: PhysicsWorld2D.h:51
void SetTexture(Texture *texture)
Set texture.
Definition: BorderImage.cpp:78
Vector3 GetRandomPointInCircle(const Vector3 ¢er, float radius, int queryFilterType, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh within a circle using the crowd initialized query extent...
Definition: CrowdManager.cpp:419
void AddChange(const String &fileName)
Add a file change into the changes queue.
Definition: FileWatcher.cpp:326
String name_
Name.
Definition: Resource.h:102
Vector3 ScreenToWorldPoint(const Vector3 &screenPos) const
Convert normalized screen coordinates (0 - 1) and distance along view Z axis (in Z coordinate) to a w...
Definition: Camera.cpp:432
bool updateNodePosition_
Flag indicating the node's position should be updated by Detour crowd manager.
Definition: CrowdAgent.h:214
float GetLinearDamping() const
Return linear damping.
Definition: RigidBody2D.h:135
void Clear(bool clearReplicated=true, bool clearLocal=true)
Clear scene completely of either replicated, local or all nodes and components.
Definition: Scene.cpp:615
bool SetGeometryCenter(unsigned index, const Vector3 ¢er)
Set geometry center.
Definition: Model.cpp:590
bool IsMaster() const
Return whether is the master (first) animated model.
Definition: AnimatedModel.h:143
const Variant & GetShaderParameter(const String &name) const
Return shader parameter.
Definition: Material.cpp:1203
Sprite.
Definition: Sprite2D.h:34
bool DirExists(const String &pathName) const
Check if a directory exists.
Definition: FileSystem.cpp:627
String shaderPath_
Base directory for shaders.
Definition: Graphics.h:849
PODVector(unsigned size)
Construct with initial size.
Definition: Vector.h:696
Frustum frustum_
Frustum for current frame.
Definition: Renderer2D.h:127
void SendMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer &msg, unsigned contentID=0)
Send a message.
Definition: Connection.cpp:111
void RefreshMemoryUse()
Recalculate the memory used by the shader.
Definition: Shader.cpp:215
@ LM_DEFAULT
Default, use animation's value.
Definition: AnimatedSprite2D.h:42
Timer statsTimer_
Statistics timer.
Definition: Connection.h:319
void SetVertexBuffer(VertexBuffer *buffer)
Set vertex buffer.
Definition: OGLGraphics.cpp:961
void SetRampTextureAttr(const ResourceRef &value)
Set ramp texture attribute.
Definition: Light.cpp:520
const Rect & GetRect() const
Return a rect or empty on type mismatch.
Definition: Variant.h:1250
Vector< DelayedCall > delayedCalls_
Delayed function calls.
Definition: ScriptFile.h:148
PODVector< BatchGroup * > sortedBatchGroups_
Sorted instanced draw calls.
Definition: Batch.h:261
virtual const String & GetTypeName() const =0
Return type name.
Localization(Context *context)
Construct.
Definition: Localization.cpp:36
~TileMapLayer2D() override
Destruct.
HashMap< unsigned, Node * > localNodes_
Local scene nodes by ID.
Definition: Scene.h:286
T * Get() const
Return raw pointer. If expired, return null.
Definition: ArrayPtr.h:301
void SetPosition(const Vector2 &position)
Set floating point position.
Definition: Sprite.cpp:136
unsigned GetNumVertices(unsigned index) const
Return number of vertices in a geometry.
Definition: CustomGeometry.cpp:718
void AddChild(Node *node, unsigned index=M_MAX_UNSIGNED)
Add a child scene node at a specific index. If index is not explicitly specified or is greater than c...
Definition: Node.cpp:804
bool ComponentIsInOurSubtree(Component *component) const
Definition: IKSolver.cpp:355
const CascadeParameters & GetShadowCascade() const
Return directional light cascaded shadow parameters.
Definition: Light.h:271
void ProcessSceneChecksumError(int msgID, MemoryBuffer &msg)
Process a SceneChecksumError message from the server. Called by Network.
Definition: Connection.cpp:576
bool HasTile(const IntVector2 &tile) const
Return whether the navigation mesh has tile.
Definition: NavigationMesh.cpp:537
Vector3(const Vector2 &vector) noexcept
Construct from a two-dimensional vector (for Urho2D).
Definition: Vector3.h:207
float pitch_
Mouse pitch.
Definition: Controls.h:68
unsigned maxInactiveFps_
Maximum frames per second when the application does not have input focus.
Definition: Engine.h:142
Iterator & operator--()
Predecrement the pointer.
Definition: HashSet.h:91
Iterator End()
Return iterator to the end.
Definition: List.h:399
int GetMultiSample() const
Return multisample mode (1 = no multisampling).
Definition: Graphics.h:354
const Color & GetEffectColor() const
Return effect color.
Definition: Text3D.cpp:448
float tileHeight_
Tile height.
Definition: TileMapDefs2D.h:60
bool SetupNextTexture(int textureWidth, int textureHeight)
Setup next texture.
Definition: FontFaceFreeType.cpp:332
HashSet< unsigned > networkUpdateComponents_
Components to check for attribute changes on the next network update.
Definition: Scene.h:306
Mutex & GetMutex()
Return audio thread mutex.
Definition: Audio.h:110
JSONValue(unsigned value)
Construct with a unsigned integer.
Definition: JSONValue.h:95
Color GammaToLinear() const
Convert color from gamma to linear space.
Definition: Color.h:213
bool SetDataRange(const void *data, unsigned start, unsigned count, bool discard=false)
Set a data range in the buffer. Optionally discard data outside the range.
Definition: OGLVertexBuffer.cpp:116
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: TerrainPatch.cpp:170
unsigned vertexCount_
Vertex count.
Definition: Model.h:70
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: Node.cpp:156
2D edge collision component.
Definition: CollisionEdge2D.h:31
signed char ReadByte()
Read an 8-bit integer.
Definition: Deserializer.cpp:84
T * GetSubsystem() const
Template version of returning a subsystem.
Definition: Context.h:273
HashMap< asITypeInfo *, HashMap< String, asIScriptFunction * > > methods_
Search cache for methods.
Definition: ScriptFile.h:146
bool BeginCall(const LuaScriptInstance *instance=nullptr)
Begin function call. When a script object is given then pass it as self argument (first parameter) to...
Definition: LuaFunction.cpp:68
int GetHeight() const
Return buffer height.
Definition: OcclusionBuffer.h:138
VariantMap GetVariantMap() const
Return a variant map attribute, or empty if missing.
Definition: XMLElement.cpp:931
Matrix4 ToMatrix4() const
Convert to a 4x4 matrix by filling in an identity last row.
Definition: Matrix3x4.h:558
TraversalMode traversalMode_
Traversal mode for rendering.
Definition: UIElement.h:815
void MarkChainsNeedUpdating()
Indicates that the internal structures of the IK library need to be updated. See the documentation of...
Definition: IKSolver.cpp:489
bool deferred_
Deferred flag. Inferred from the existence of a light volume command in the renderpath.
Definition: View.h:374
bool LoadAsyncJSON(File *file, LoadMode mode=LOAD_SCENE_AND_RESOURCES)
Load from a JSON file asynchronously. Return true if started successfully. The LOAD_RESOURCES_ONLY mo...
Definition: Scene.cpp:451
RibbonTrail(Context *context)
Construct.
Definition: RibbonTrail.cpp:62
void HandleRuntimeError(const char *message, const char *cause)
Internal helper method to handle runtime exception by logging it to stderr stream.
Definition: ODBCConnection.cpp:158
ConvexData(Model *model, unsigned lodLevel)
Construct from a model.
Definition: CollisionShape.cpp:227
FileSelector(Context *context)
Construct.
Definition: FileSelector.cpp:52
bool Equals(const Color &rhs) const
Test for equality with another color with epsilon.
Definition: Color.h:241
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:76
float maxZ_
Current maximum view space depth.
Definition: Drawable.h:375
~RaycastVehicle() override
Destruct.
Definition: RaycastVehicle.cpp:152
Template implementation of the event handler invoke helper (std::function instance).
Definition: Object.h:330
FaceCameraMode faceCameraMode_
Particle rotation mode in relation to the camera.
Definition: ParticleEffect.h:425
T * Reserve()
Reserve and default-construct an object.
Definition: Allocator.h:94
void SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
Set sound data format.
Definition: SoundStream.cpp:45
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: Node.cpp:231
FontFaceFreeType(Font *font)
Construct.
Definition: FontFaceFreeType.cpp:79
void AllocateScreenBuffers()
Allocate needed screen buffers.
Definition: View.cpp:1952
SharedArrayPtr< Vector3 > vertexData_
Vertex data.
Definition: CollisionShape.h:115
void Define(const Vector3 &point)
Define from a point.
Definition: BoundingBox.h:170
const String & GetTypeName() const
Return type name of objects created by this factory.
Definition: Object.h:222
bool GetFlipX() const
Return flip X.
Definition: StaticSprite2D.h:89
Vector< AttributeInfo > attributeInfos_
Attributes, including script object variables.
Definition: ScriptInstance.h:204
rcCompactHeightfield * compactHeightField_
Recast compact heightfield.
Definition: NavBuildData.h:82
Resource(Context *context)
Construct.
Definition: Resource.cpp:34
bool IsShadowed() const
Return whether CPU memory shadowing is enabled.
Definition: VertexBuffer.h:67
PODVector< CharLocation > charLocations_
Cached locations of each character in the text.
Definition: Text.h:263
SharedPtr< Material > material_
Material to use as a base for the text material(s).
Definition: Text3D.h:196
String ToString() const
Convert value to string. Pointers are returned as null, and VariantBuffer or VariantMap are not suppo...
Definition: Variant.cpp:440
2D source batch.
Definition: Drawable2D.h:48
void SetStartColor(const Color &startColor)
Set start color.
Definition: ParticleEffect2D.cpp:364
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: StaticModel.cpp:168
void ReleaseAllResources(bool force=false)
Release all resources. When called with the force flag false, releases all currently unused resources...
Definition: ResourceCache.cpp:344
IntVector2 coordinates_
Patch coordinates in the terrain. (0,0) is the northwest corner.
Definition: TerrainPatch.h:138
WeakPtr< RenderSurface > linkedRenderTarget_
Linked color buffer.
Definition: RenderSurface.h:150
void SetVertex(unsigned index, const Vector2 &vertex)
Set vertex.
Definition: CollisionPolygon2D.cpp:60
Custom variant value implementation.
Definition: Variant.h:225
Quaternion Rotation() const
Return the rotation part.
Definition: Matrix3x4.h:613
bool Empty() const
Return whether result set is empty.
Definition: XMLElement.cpp:1056
Camera * GetCamera() const
Return viewport camera.
Definition: View.h:142
static const Plane UP
Plane at origin with normal pointing up.
Definition: Plane.h:125
HashMap< unsigned, float > kerningMapping_
Kerning mapping.
Definition: FontFace.h:108
void OptimizeLightByStencil(Light *light, Camera *camera)
Optimize a light by marking it to the stencil buffer and setting a stencil test.
Definition: Renderer.cpp:1380
Vector< PODVector< unsigned > > geometryBoneMappings_
Mapping of subgeometry bone indices, used if more bones than skinning shader can manage.
Definition: AnimatedModel.h:223
void * GetRenderTargetView() const
Return Direct3D11 rendertarget or depth-stencil view. Not valid on OpenGL.
Definition: RenderSurface.h:108
int GetMinHeight() const
Return minimum height.
Definition: UIElement.h:427
void ApplyLinearImpulse(const Vector2 &impulse, const Vector2 &point, bool wake)
Apply linear impulse.
Definition: RigidBody2D.cpp:347
float emitRotation_
Emit rotation.
Definition: ParticleEmitter2D.h:70
bool isVisible(const btVector3 &aabbMin, const btVector3 &aabbMax) override
Check if an AABB is visible for debug drawing.
Definition: PhysicsWorld.cpp:215
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Constraint.cpp:451
void SetElementEventSender(bool flag)
Set element event sender flag. When child element is added or deleted, the event would be sent using ...
Definition: UIElement.cpp:1454
const HashMap< String, PackageEntry > & GetEntries() const
Return all file entries.
Definition: PackageFile.h:62
unsigned buffer_
Constant buffer index. Only used on Direct3D11.
Definition: ShaderVariation.h:75
float GetLodDistance(float distance, float scale, float bias) const
Return a scene node's LOD scaled distance.
Definition: Camera.cpp:512
bool FromLookRotation(const Vector3 &direction, const Vector3 &up=Vector3::UP)
Define from a direction to look in and an up direction. Return true if successful,...
Definition: Quaternion.cpp:151
Camera * camera_
Camera being used.
Definition: Drawable.h:77
bool SetInfo(Orientation2D orientation, int width, int height, float tileWidth, float tileHeight)
Set Tilemap information.
Definition: TmxFile2D.cpp:530
bool isDesktop_
Require desktop GPU flag.
Definition: Technique.h:278
PODVector< Drawable * > drawableUpdates_
Drawable objects that require update.
Definition: Octree.h:208
unsigned totalFragments_
Total number of fragments.
Definition: Connection.h:80
void SetParameter(unsigned offset, unsigned size, const void *data)
Set a generic parameter and mark buffer dirty.
Definition: ConstantBuffer.cpp:45
unsigned shadowCasterEnd_[MAX_LIGHT_SPLITS]
Shadow caster end indices.
Definition: View.h:68
const Vector< SharedPtr< Texture2D > > & GetTextures() const
Return textures.
Definition: FontFace.h:94
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionShape.cpp:479
Vector3 position_
Position.
Definition: BillboardSet.h:41
void RegisterSubsystem(Object *object)
Register a subsystem.
Definition: Context.cpp:181
unsigned GetOcclusionLodLevel() const
Return occlusion LOD level.
Definition: StaticModel.h:88
void SetTextureRect(const Rect &rect)
Set texture rectangle.
Definition: StaticSprite2D.cpp:108
Iterator Insert(const Iterator &dest, const T &value)
Insert an element by iterator.
Definition: Vector.h:303
void Update(float timeStep)
Run update on sound sources. Not required for continued playback, but frees unused sound sources & so...
Definition: Audio.cpp:129
Vector3 Reflect(const Vector3 &direction) const
Reflect a normalized direction vector.
Definition: Plane.h:103
float GetAnimationLodBias() const
Return animation LOD bias.
Definition: RibbonTrail.h:155
void HandleConsoleCommand(StringHash eventType, VariantMap &eventData)
Handle a console command event.
Definition: LuaScript.cpp:483
SharedPtr< UIElement > overlayContainer_
Overlay container, used in hierarchy mode only.
Definition: ListView.h:180
Object * GetReceiver() const
Return event receiver.
Definition: Object.h:274
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: LuaScriptInstance.cpp:291
void SetRenderTarget(unsigned index, const RenderTargetInfo &info)
Assign rendertarget at index.
Definition: RenderPath.cpp:427
DeferredLightVSVariation
Deferred light volume vertex shader variations.
Definition: Renderer.h:111
bool GetData(CubeMapFace face, unsigned level, void *dest) const
Get data from a face's mip level. The destination buffer must be big enough. Return true if successfu...
Definition: OGLTextureCube.cpp:372
Vector< SharedPtr< WorkerThread > > threads_
Worker threads.
Definition: WorkQueue.h:130
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: DynamicNavigationMesh.cpp:592
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: UnknownComponent.cpp:141
Node * FindNode(const T &key, unsigned hashKey) const
Find a node from the buckets. Do not call if the buckets have not been allocated.
Definition: HashMap.h:628
unsigned ClosestPowerOfTwo(unsigned value)
Round up or down to the closest power of two.
Definition: MathDefs.h:253
unsigned GetNumObjects() const
Return number of objects.
Definition: TmxFile2D.h:119
unsigned color_
Color.
Definition: DebugRenderer.h:62
List(const List< T > &list)
Construct from another list.
Definition: List.h:176
const Vector2 & GetScale() const
Return scale.
Definition: Sprite.h:89
@ JSON_BOOL
JSON boolean type.
Definition: JSONValue.h:38
void SetZone(Zone *zone, bool temporary=false)
Set new zone. Zone assignment may optionally be temporary, meaning it needs to be re-evaluated on the...
Definition: Drawable.cpp:283
bool stopAtEnd_
Stop when no more data flag.
Definition: SoundStream.h:72
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: UnknownComponent.cpp:219
void SetNode(Node *node)
Set scene node. Called by Node when creating the component.
Definition: Component.cpp:259
void Update(float timeStep)
Step the simulation forward.
Definition: PhysicsWorld2D.cpp:279
CPU-side scratch buffer for vertex data updates.
Definition: Graphics.h:64
static unsigned GetDataType(unsigned format)
Return the data type corresponding to an OpenGL internal format.
Definition: OGLTexture.cpp:282
HashMap< int, PODVector< const char * > > enumValues_
Cache of typeIds to array of enum value strings for attributes.
Definition: Script.h:141
void SetEffect(ParticleEffect2D *effect)
Set particle effect.
Definition: ParticleEmitter2D.cpp:89
float GetMaxDoubleClickDistance() const
Return max screen distance in pixels for double clicks to register.
Definition: UI.h:176
Vector3 GetWheelConnectionPoint(int wheel) const
Get wheel connection point relative to RigidBody.
Definition: RaycastVehicle.cpp:432
void GetChildrenRecursive(PODVector< Node * > &dest) const
Return child nodes recursively.
Definition: Node.cpp:2135
void SetVar(StringHash key, const Variant &value)
Set a user variable.
Definition: Node.cpp:1146
Hash set/map iterator base class.
Definition: HashBase.h:58
HashMap & operator=(const HashMap< T, U > &rhs)
Assign a hash map.
Definition: HashMap.h:262
PODVector< float > lodErrors_
Geometrical error per LOD level.
Definition: TerrainPatch.h:136
bool useMutableGlyphs_
Flag for using mutable (erasable) font glyphs.
Definition: UI.h:403
unsigned char gridSize
grid
Definition: CrowdManager.h:52
float GetUpperAngle() const
Return upper angle.
Definition: ConstraintRevolute2D.h:68
Scene * GetScene() const
Return the scene used by this connection.
Definition: Connection.cpp:1063
volatile bool shouldRun_
Running flag.
Definition: Thread.h:74
ResourceRef GetFontAttr() const
Return font attribute.
Definition: Text.cpp:449
unsigned char lightMask_
8-bit light mask for stencil marking in deferred rendering.
Definition: Batch.h:84
HashMap< asITypeInfo *, bool > validClasses_
Search cache for checking whether script classes implement "ScriptObject" interface.
Definition: ScriptFile.h:142
void Close()
Close the pipe. Note that once a client has disconnected, the server needs to close and reopen the pi...
Definition: NamedPipe.cpp:323
const IntVector2 & GetAbsoluteGlyphOffset() const
Return absolute position adjustment for glyphs.
Definition: Font.h:79
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: CustomGeometry.cpp:143
static int Loader(lua_State *L)
Loader.
Definition: LuaScript.cpp:355
Texture * GetBackupTexture() const
Return backup texture.
Definition: Texture.h:121
void UpdateAttributeAnimations(float timeStep)
Update attribute animations.
Definition: Animatable.cpp:508
Variant GetVariantValue(VariantType type) const
Return a variant attribute with static type.
Definition: XMLElement.cpp:853
RenderSurface * renderTargets_[MAX_RENDERTARGETS]
Rendertargets in use.
Definition: Graphics.h:793
virtual void GetDebugDrawBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor)
Return UI rendering batches for debug draw.
Definition: UIElement.cpp:349
void SetHeight(float newHeight)
Set the height of this obstacle.
Definition: Obstacle.cpp:73
float GetCorrectionFactor() const
Return correction factor.
Definition: ConstraintMotor2D.h:67
bool pauseMinimized_
Pause when minimized flag.
Definition: Engine.h:144
HashNodeBase * down_
Next node in the bucket.
Definition: HashBase.h:50
static VariantType GetTypeFromName(const String &typeName)
Return variant type from type name.
Definition: Variant.cpp:969
void AddCollisionShape2D(CollisionShape2D *collisionShape)
Add collision shape.
Definition: RigidBody2D.cpp:468
void SetTransform2D(const Vector2 &position, float rotation, const Vector2 &scale)
Set position, rotation, and scale in parent space as an atomic operation (for Urho2D).
Definition: Node.h:179
bool bringToBack_
Bring to back when defocused flag.
Definition: UIElement.h:694
WorkQueue(Context *context)
Construct.
Definition: WorkQueue.cpp:63
asIScriptObject * scriptObject_
Script object.
Definition: ScriptInstance.h:196
Shader resource consisting of several shader variations.
Definition: Shader.h:34
Quaternion(float angle, const Vector3 &axis) noexcept
Construct from an angle (in degrees) and axis.
Definition: Quaternion.h:96
void SetMode(unsigned mode)
Set elements to show.
Definition: DebugHud.cpp:225
void Resize(unsigned newSize)
Resize the list by removing or adding items at the end.
Definition: List.h:362
PListValueType
PList value types.
Definition: PListFile.h:35
float speed_
Animation speed.
Definition: AnimationController.h:60
float z_
Z coordinate.
Definition: Vector4.h:229
unsigned GetNumObstacleAvoidanceTypes() const
Get the number of configured obstacle avoidance types.
Definition: CrowdManager.h:146
wchar_t & At(unsigned index)
Return char at index.
Definition: Str.h:595
static const Quaternion IDENTITY
Identity quaternion.
Definition: Quaternion.h:470
Glyph and its location within the text. Used when preparing text rendering.
Definition: Text.h:56
Vector< SharedPtr< Viewport > > viewports_
Backbuffer viewports.
Definition: Renderer.h:520
const StringHash & GetEventType() const
Return event type.
Definition: Object.h:280
void SetMipsToSkip(MaterialQuality quality, int toSkip)
Set mip levels to skip on a quality setting when loading. Ensures higher quality levels do not skip m...
Definition: Texture.cpp:109
Vector3 Raycast(const Vector3 &start, const Vector3 &end, int queryFilterType, Vector3 *hitNormal=nullptr)
Perform a walkability raycast on the navigation mesh between start and end using the crowd initialize...
Definition: CrowdManager.cpp:439
BoundingBox cullingBox_
Bounding box used for drawable object fitting.
Definition: Octree.h:138
const Color & GetStartColor() const
Get vertex blended color for start of trail.
Definition: RibbonTrail.h:137
void ClearBuffer(unsigned threadIndex)
Clear a thread work buffer.
Definition: OcclusionBuffer.cpp:1028
One decal in a decal set.
Definition: DecalSet.h:76
float GetMinRotation() const
Return particle minimum rotation.
Definition: ParticleEffect.h:299
const Vector2 & GetLayoutFlexScale() const
Return layout flex scale.
Definition: UIElement.h:558
Color color_
Color.
Definition: StaticSprite2D.h:154
KeyValue(const KeyValue &value)
Copy-construct.
Definition: HashMap.h:61
Quaternion(const Vector3 &angles) noexcept
Construct from Euler angles (in degrees).
Definition: Quaternion.h:114
~WorkQueue() override
Destruct.
Definition: WorkQueue.cpp:76
HashNodeBase ** Ptrs() const
Return bucket head pointers.
Definition: HashBase.h:146
bool useSystemShapes_
Use system default shapes flag.
Definition: Cursor.h:142
const IntRect & GetBorder() const
Get border as number of pixels from each side.
Definition: StretchableSprite2D.h:43
2D physics simulation world component. Should be added only to the root scene node.
Definition: PhysicsWorld2D.h:70
static void RegisterObject(Context *context)
Register object attributes. Drawable must be registered first.
Definition: Drawable.cpp:99
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: PListFile.cpp:311
bool cubemap_
Cubemap status if DDS.
Definition: Image.h:226
LuaFile(Context *context)
Construct.
Definition: LuaFile.cpp:44
int Refs() const
Return the object's reference count, or 0 if null pointer or if object has expired.
Definition: Ptr.h:486
void SetEndColor(const Color &color)
Set vertex blended scale for end of trail.
Definition: RibbonTrail.cpp:824
void Pitch(float angle, TransformSpace space=TS_LOCAL)
Rotate around the X axis.
Definition: Node.cpp:660
NetworkPriority(Context *context)
Construct.
Definition: NetworkPriority.cpp:40
GeometryType geometryType_
Geometry type.
Definition: Batch.h:108
SLNet::AddressOrGUID * address_
Address of this connection.
Definition: Connection.h:337
Decal vertex.
Definition: DecalSet.h:37
Octant * GetOctant() const
Return octree octant.
Definition: Drawable.h:251
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Camera.cpp:642
unsigned batchCount_
Batch count.
Definition: Renderer2D.h:58
Sound * GetSound() const
Return sound.
Definition: SoundSource.h:81
T & At(unsigned index)
Return element at index.
Definition: Vector.h:826
Matrix3x4 Inverse() const
Return inverse.
Definition: Matrix3x4.cpp:55
bool SetVariantValue(const Variant &value)
Set a variant attribute excluding the type.
Definition: XMLElement.cpp:420
Vector3 SignedScale(const Matrix3 &rotation) const
Return the scaling part with the sign. Reference rotation matrix is required to avoid ambiguity.
Definition: Matrix3x4.h:626
void SetTextureFrames(const Vector< TextureFrame > &textureFrames)
Set particle texture animation.
Definition: ParticleEffect.cpp:709
SharedPtr< Text > statsText_
Rendering stats text.
Definition: DebugHud.h:113
bool IsSixteenBit() const
Return whether data is sixteen bit.
Definition: Sound.h:100
bool WriteBool(bool value)
Write a bool.
Definition: Serializer.cpp:76
void ApplyActivePoseToScene()
Definition: IKSolver.cpp:465
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: Polyhedron.cpp:237
unsigned GetHistoryPosition() const
Return current history position.
Definition: Console.h:114
int GetRefreshRate() const
Return refresh rate when using vsync in fullscreen.
Definition: Graphics.h:375
void SetSmoothing(bool enable)
Set smoothing of heightmap.
Definition: Terrain.cpp:233
T Abs(T value)
Return absolute value of a value.
Definition: MathDefs.h:91
float timeScale_
Scene update time scale.
Definition: Scene.h:326
bool readOnly_
Read-only flag.
Definition: MemoryBuffer.h:60
Vector(ConstIterator start, ConstIterator end)
Copy-construct from another vector (iterator version).
Definition: Vector.h:83
bool loop_
Loop.
Definition: CollisionChain2D.h:77
void SetNavigationDataAttr(const PODVector< unsigned char > &value) override
Set navigation data attribute.
Definition: DynamicNavigationMesh.cpp:675
void RegisterFactory(ObjectFactory *factory)
Register a factory for an object type.
Definition: Context.cpp:163
void SetOccluderSizeThreshold(float screenSize)
Set required screen size (1.0 = full screen) for occluders.
Definition: Renderer.cpp:512
const T & At(unsigned index) const
Return const element at index.
Definition: Vector.h:215
UIElement * screenJoystick_
UI element containing the screen joystick.
Definition: Input.h:115
Zone * cameraZone_
Zone the camera is inside, or default zone if not assigned.
Definition: View.h:326
float lodDistance_
LOD scaled distance.
Definition: Drawable.h:365
void RemoveEventHandler(StringHash eventType) override
Remove a scripted event handler.
Definition: ScriptFile.cpp:212
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: AnimatedSprite2D.cpp:212
int GetWidth() const
Return width.
Definition: TmxFile2D.h:54
TextureUnit
Texture units.
Definition: GraphicsDefs.h:320
Bone()
Construct with defaults.
Definition: Skeleton.h:49
void ReleaseShaders()
Reset shader pointers in all passes.
Definition: Technique.cpp:366
View * GetPreparedView(Camera *camera)
Return a prepared view if exists for the specified camera. Used to avoid duplicate view preparation C...
Definition: Renderer.cpp:1148
bool Compile()
Compile from source. Return true if successful.
Definition: OGLShaderVariation.cpp:200
TextureUsage GetUsage() const
Return usage.
Definition: RenderSurface.cpp:92
bool operator<(const Pair< T, U > &rhs) const
Test for less than with another pair.
Definition: Pair.h:51
unsigned type_
type.
Definition: JSONValue.h:295
float GetHeight() const
Get the height of this obstacle.
Definition: Obstacle.h:53
bool negative_
Light negative flag.
Definition: Batch.h:297
HiresTimer timer_
High-resolution timer for measuring the block duration.
Definition: Profiler.h:140
void FixedPostUpdate(float timeStep) override
Perform fixed step post-update.
Definition: RaycastVehicle.cpp:318
HashMap< unsigned, VertexBufferMorph > buffers_
Morph data per vertex buffer.
Definition: Model.h:63
float radius_
Radius.
Definition: OffMeshConnection.h:82
bool GetUpdateInvisible() const
Return whether to update when trail emitter are not visible.
Definition: RibbonTrail.h:170
int functionRef_
Lua reference to function object.
Definition: LuaFunction.h:107
void SetTransform(const Vector3 &position, const Quaternion &rotation)
Set both position and rotation in parent space as an atomic operation. This is faster than setting po...
Definition: Node.cpp:484
void SendEndContactEvents()
Send end contact events.
Definition: PhysicsWorld2D.cpp:774
SharedPtr< Object > CreateObject() override
Create an object of the specific type.
Definition: Object.h:243
Matrix3x4(const Matrix3 &matrix) noexcept
Copy-construct from a 3x3 matrix and set the extra elements to identity.
Definition: Matrix3x4.h:66
const Vector3 & GetSpacing() const
Return vertex and height spacing.
Definition: Terrain.h:108
void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color) override
Draw a physics debug line.
Definition: PhysicsWorld.cpp:223
bool fastMode_
Fast mode flag.
Definition: AreaAllocator.h:70
void * GetGPUObject() const
Return the object pointer. Applicable only on Direct3D.
Definition: GPUObject.h:63
void SetSteeringValue(int wheel, float steeringValue)
Set steering value of particular wheel.
Definition: RaycastVehicle.cpp:439
void ResetToDefaults()
Reset to defaults.
Definition: Material.cpp:1246
static void RegisterObject(Context *context)
Register object factory.
Definition: AnimationSet2D.cpp:119
bool sRGB_
sRGB conversion on write flag for the main window.
Definition: Graphics.h:737
unsigned vertexCount_
Vertex count.
Definition: Renderer2D.h:50
void SetAngleVariance(float angleVariance)
Set angle variance.
Definition: ParticleEffect2D.cpp:334
float SignedArea(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2) const
Return signed area of a triangle. If negative, is clockwise.
Definition: OcclusionBuffer.cpp:569
virtual const FontGlyph * GetGlyph(unsigned c)
Return pointer to the glyph structure corresponding to a character. Return null if glyph not found.
Definition: FontFace.cpp:54
unsigned mode_
Current shown-element mode.
Definition: DebugHud.h:133
unsigned drawStart_
Draw start. First index for indexed geometry, otherwise first vertex.
Definition: OcclusionBuffer.h:78
void AddAttributeAnimation(const String &name, ValueAnimation *attributeAnimation, WrapMode wrapMode=WM_LOOP, float speed=1.0f)
Add attribute animation, attribute name can in following format: "attribute" or "#0/#1/attribute" or ...
Definition: ObjectAnimation.cpp:193
Mutex backgroundLoadMutex_
Mutex for thread-safe access to the background load queue.
Definition: BackgroundLoader.h:82
void InsertDrawable(Drawable *drawable)
Insert a drawable object by checking for fit recursively.
Definition: Octree.cpp:134
static void ConstructElements(T *dest, RandomIteratorT start, RandomIteratorT end, MoveTag)
Move-construct elements.
Definition: Vector.h:561
~ConstraintPrismatic2D() override
Destruct.
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintMouse2D.cpp:117
void ScanDir(Vector< String > &result, const String &pathName, const String &filter, unsigned flags, bool recursive) const
Scan a directory for specified files.
Definition: FileSystem.cpp:681
void SetSRGB(bool enable)
Set whether the main window uses sRGB conversion on write.
Definition: OGLGraphics.cpp:513
Constraint2D * GetAttachedConstraint() const
Return attached constraint (for gear).
Definition: Constraint2D.h:74
void AddTransforms(const Batch &batch)
Add world transform(s) from a batch.
Definition: Batch.h:153
const IntVector2 & GetDisabledOffset() const
Return offset to image rectangle used when disabled.
Definition: BorderImage.h:91
NavigationMesh(Context *context)
Construct.
Definition: NavigationMesh.cpp:100
Iterator Find(const T &key)
Return iterator to the pair with key, or end iterator if not found.
Definition: HashMap.h:529
unsigned senderID_
Remote sender node ID (0 if not a remote node event).
Definition: Connection.h:58
float height_
Height of this obstacle, extends 1/2 height below and 1/2 height above the owning node's position.
Definition: Obstacle.h:86
GeometryType
Geometry type for vertex shader geometry variations.
Definition: GraphicsDefs.h:55
void AddNode(Node *node, float scale=1.0f, bool depthTest=true)
Add a scene node represented as its coordinate axes.
Definition: DebugRenderer.cpp:131
Vector3 centerOfMass_
Center of mass offset.
Definition: RigidBody.h:283
unsigned Seek(unsigned position) override
Set position from the beginning of the buffer. Return actual new position.
Definition: VectorBuffer.cpp:63
static const IntVector3 BACK
(0,0,-1) vector.
Definition: Vector3.h:178
void SetFillMode(FillMode mode)
Set polygon fill mode to use when rendering a scene.
Definition: Camera.cpp:189
bool IsVisible() const
Return whether element itself should be visible. Elements can be also hidden due to the parent being ...
Definition: UIElement.h:523
Scene * GetDefaultScene() const
Return immediate mode scene.
Definition: Script.cpp:293
SharedPtr< HttpRequest > MakeHttpRequest(const String &url, const String &verb=String::EMPTY, const Vector< String > &headers=Vector< String >(), const String &postData=String::EMPTY)
Perform an HTTP request to the specified URL. Empty verb defaults to a GET request....
Definition: Network.cpp:639
const ScreenModeParams & GetScreenModeParams() const
Return screen mode parameters.
Definition: Graphics.h:351
unsigned size_
Buffer byte size.
Definition: ConstantBuffer.h:68
void SetColor(const Color &color)
Set color on all corners.
Definition: UIElement.cpp:822
void Update(float timeStep)
Process incoming messages from connections. Called by HandleBeginFrame.
Definition: Network.cpp:889
void SetPartitionType(NavmeshPartitionType partitionType)
Set the partition type used for polygon generation.
Definition: NavigationMesh.cpp:1582
unsigned long long elementHash_
Vertex element hash.
Definition: VertexBuffer.h:156
void CalculateConstantBufferSizes()
Calculate constant buffer sizes from parameters.
Definition: OGLShaderVariation.cpp:203
HashSet< Pair< StringHash, StringHash > > dependencies_
Resources depended on for loading.
Definition: BackgroundLoader.h:45
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Material.cpp:211
Vector< SharedPtr< Geometry > > geometries_
Geometries.
Definition: Text3D.h:192
static void RegisterObject(Context *context)
Register object factory.
Definition: UIElement.cpp:112
IntVector3(int x, int y, int z) noexcept
Construct from coordinates.
Definition: Vector3.h:44
String name_
Name.
Definition: Material.h:50
bool useClipping_
Use custom clip plane flag.
Definition: Camera.h:282
Matrix3x4 volumeTransform_
Custom world transform for the light volume.
Definition: Light.h:363
void Transform(const Matrix3 &transform)
Transform by a 3x3 matrix.
Definition: Frustum.cpp:173
@ WM_ONCE
Play once, when animation finished it will be removed.
Definition: AnimationDefs.h:36
void DrawInstanced(PrimitiveType type, unsigned indexStart, unsigned indexCount, unsigned minVertex, unsigned vertexCount, unsigned instanceCount)
Draw indexed, instanced geometry. An instancing vertex buffer must be set.
Definition: OGLGraphics.cpp:901
@ ASYNC_DONE
No async operation in progress.
Definition: Resource.h:42
Lua script subsystem.
Definition: LuaScript.h:41
virtual bool Create()
Create the GPU texture. Implemented in subclasses.
Definition: Texture.h:196
Mutex audioMutex_
Audio thread mutex.
Definition: Audio.h:129
String eventName_
Event name.
Definition: RenderPath.h:186
bool GetUseRendererStats() const
Return whether showing 3D geometry primitive/batch count only.
Definition: DebugHud.h:97
int numTilesX_
Number of tiles in X direction.
Definition: NavigationMesh.h:340
void NotifyRigidBody(bool updateMass=true)
Update the new collision shape to the RigidBody.
Definition: CollisionShape.cpp:845
void SetParameters(asIScriptContext *context, asIScriptFunction *function, const VariantVector ¶meters)
Set parameters for a function or method.
Definition: ScriptFile.cpp:835
void SetTexture(unsigned index, Texture *texture)
Set texture.
Definition: OGLGraphics.cpp:1492
UIElement * GetRootModalElement() const
Return root modal element.
Definition: UI.h:138
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ValueAnimation.cpp:69
Vector< JSONValue > JSONArray
JSON array type.
Definition: JSONValue.h:65
float GetContactProcessingThreshold() const
Return contact processing threshold.
Definition: RigidBody.cpp:683
float GetSteeringValue(int wheel) const
Get steering value of particular wheel.
Definition: RaycastVehicle.cpp:445
float agentMaxClimb_
Navigation agent max vertical climb.
Definition: NavigationMesh.h:322
PODVector< Light * > lights_
Lights.
Definition: View.h:100
bool EmitNewParticle()
Create a new particle. Return true if there was room.
Definition: ParticleEmitter.cpp:448
Vector< PODVector< CustomGeometryVertex > > vertices_
Source vertices per geometry.
Definition: CustomGeometry.h:166
void DefineNormal(const Vector3 &normal)
Define a vertex normal.
Definition: CustomGeometry.cpp:550
bool HasEventHandler(const String &eventName) const override
Return whether has subscribed to an event.
Definition: LuaScriptInstance.cpp:370
float GetEndScale() const
Get vertex blended scale for end of trail.
Definition: RibbonTrail.h:146
String meshName_
Identifying name for this navigation mesh.
Definition: NavigationMesh.h:302
void Reset()
Clear all loaded strings.
Definition: Localization.cpp:148
String ToString() const
Return as string.
Definition: Color.cpp:251
const String & PrintData(bool showUnused=false, bool showTotal=false, unsigned maxDepth=M_MAX_UNSIGNED) const
Return profiling data as text output. This method is not thread-safe.
Definition: Profiler.cpp:72
bool IsReadOnly()
Return whether buffer is read-only.
Definition: MemoryBuffer.h:54
int GetMaxParticles() const
Return max particles.
Definition: ParticleEffect2D.h:188
float Average() const
Return average value of the RGB channels.
Definition: Color.h:171
bool WriteQuaternion(const Quaternion &value)
Write a quaternion.
Definition: Serializer.cpp:137
void SetAnimationEnabled(bool enable)
Set automatic update of animation, default true.
Definition: Animatable.cpp:254
VectorBuffer attrBuffer_
Attribute buffer for network replication.
Definition: AnimationController.h:210
int layer_
Layer.
Definition: Drawable2D.h:112
unsigned Size() const
Return number of elements.
Definition: HashBase.h:127
void MarkAnimationDirty()
Mark animation and skinning to require an update.
Definition: AnimatedModel.cpp:1082
void RemoveEventHandlers() override
Remove all scripted event handlers.
Definition: ScriptInstance.cpp:396
float GetOrthoSize() const
Return orthographic mode size.
Definition: Camera.h:119
bool NeedParameterUpdate(ShaderParameterGroup group, const void *source)
Check whether a shader parameter group needs update. Does not actually check whether parameters exist...
Definition: OGLShaderProgram.cpp:347
void CreateWindowIcon()
Create the application window icon.
Definition: Graphics.cpp:477
unsigned selectionLength_
Selection length.
Definition: Text.h:237
Vector3 GetRight() const
Return right direction in parent space. Positive X axis equals identity rotation.
Definition: Node.h:395
Connection * connection_
Parent network connection.
Definition: ReplicationState.h:141
Vector3 Raycast(const Vector3 &start, const Vector3 &end, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, Vector3 *hitNormal=nullptr)
Perform a walkability raycast on the navigation mesh between start and end and return the point where...
Definition: NavigationMesh.cpp:815
~Log() override
Destruct. Close the log file if open.
Definition: Log.cpp:77
void OnAttributeAnimationRemoved() override
Handle attribute animation removed.
Definition: Node.cpp:1907
Font * lastFont_
Last used text font.
Definition: LineEdit.h:136
String scriptObjectType_
Script object type.
Definition: LuaScriptInstance.h:179
bool CheckFramebuffer()
Check FBO completeness using either extension or core functionality. Used only on OpenGL.
Definition: OGLGraphics.cpp:3356
long long maxTime_
Maximum time on current frame.
Definition: Profiler.h:144
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Font.cpp:76
LineEdit * lineEdit_
Line edit.
Definition: Console.h:153
VariantVector nodeIDsAttr_
IDs of instance nodes for serialization.
Definition: StaticModelGroup.h:90
const IntRect & GetImageRect() const
Return image rectangle.
Definition: BorderImage.h:79
void SetID(unsigned id)
Set ID. Called by Scene.
Definition: Node.cpp:1439
void SetEffectStrokeThickness(int thickness)
Set stroke thickness.
Definition: Text3D.cpp:288
void GetLightBatches()
Get batches from lit geometries and shadowcasters.
Definition: View.cpp:1003
void SetAnimation(const String &name, LoopMode2D loopMode=LM_DEFAULT)
Set animation by name and loop mode.
Definition: AnimatedSprite2D.cpp:169
void SetResizeBorder(const IntRect &rect)
Set resize area width at edges.
Definition: Window.cpp:272
static unsigned materialPassIndex
Index for prepass material pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:264
void EnsureItemVisibility(unsigned index)
Ensure full visibility of the item.
Definition: ListView.cpp:994
WeakPtr< Renderer > renderer_
Renderer subsystem.
Definition: View.h:314
IntVector2 GetIntVector2(const String &name) const
Return an IntVector2 attribute, or default if missing.
Definition: XMLElement.cpp:827
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ScriptFile.cpp:114
~Renderer() override
Destruct.
void SetVertex(unsigned index, const Vector2 &vertex)
Set vertex.
Definition: CollisionChain2D.cpp:73
Vector< FileSelectorEntry > fileEntries_
File entries.
Definition: FileSelector.h:183
String GetLastMessage() const
Return last log message.
Definition: Log.h:101
Debug rendering line.
Definition: DebugRenderer.h:44
String EvaluateToString(const XMLElement &element) const
Evaluate XPath query and expecting a string return value.
Definition: XMLElement.cpp:1180
Geometry * GetLodGeometry(unsigned batchIndex, unsigned level) override
Return the geometry for a specific LOD level.
Definition: TerrainPatch.cpp:162
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: RigidBody.cpp:131
void ReleaseObject()
Release the script object.
Definition: LuaScriptInstance.cpp:728
float GetDrawDistance() const
Return draw distance.
Definition: Drawable.h:186
void GetLevels(PODVector< Image * > &levels)
Get all stored mip levels starting from this.
Definition: Image.cpp:2315
int indentSpacing_
Indent spacing (number of pixels per indentation level).
Definition: UIElement.h:736
bool Load(Deserializer &source)
Load resource synchronously. Call both BeginLoad() & EndLoad() and return true if both succeeded.
Definition: Resource.cpp:41
void SetObjectGroup(const TmxObjectGroup2D *objectGroup)
Set object group.
Definition: TileMapLayer2D.cpp:369
void UpdateEdgePatchNeighbors()
Update edge patch neighbors when neighbor terrain(s) change or are recreated.
Definition: Terrain.cpp:1450
Unique pointer template class.
Definition: Ptr.h:567
void AddAutoComplete(const String &option)
Add auto complete option.
Definition: Console.cpp:253
void SetFullImageRect()
Use whole texture as the image.
Definition: BorderImage.cpp:91
void drawContactPoint(const btVector3 &pointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color) override
Draw a physics debug contact point. Not implemented.
Definition: PhysicsWorld.cpp:247
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: BillboardSet.cpp:471
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintWheel2D.cpp:46
unsigned lastInstanceOffset_
Last used instance data offset.
Definition: OGLGraphicsImpl.h:148
void SetShaderParameterAnimationWrapMode(const String &name, WrapMode wrapMode)
Set shader parameter animation wrap mode.
Definition: Material.cpp:1018
Frustum GetViewSpaceFrustum() const
Return frustum in view space.
Definition: Camera.cpp:340
bool operator<(const SharedPtr< U > &rhs) const
Test for less than with another shared pointer.
Definition: Ptr.h:152
void SetTransform2D(const Vector2 &position, float rotation, float scale)
Set position, rotation, and uniform scale in parent space as an atomic operation (for Urho2D).
Definition: Node.h:173
BackgroundLoader(ResourceCache *owner)
Construct.
LuaFunction * coroutineUpdate_
Coroutine update function.
Definition: LuaScript.h:123
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintPulley2D.h:81
Vector4 splits_
Far clip values of the splits.
Definition: Light.h:111
bool Null() const
Check if the pointer is null.
Definition: ArrayPtr.h:153
StencilOp stencilPass_
Stencil operation on pass.
Definition: Graphics.h:829
ResourceGroup()
Construct with defaults.
Definition: ResourceCache.h:47
SourceBatch & operator=(const SourceBatch &rhs)
Assignment operator.
void SetTolerance(int tolerance)
Set the pool telerance before it starts deleting pool items.
Definition: WorkQueue.h:98
void GetRigidBodies(PODVector< RigidBody2D * > &results, const Rect &aabb, unsigned collisionMask=M_MAX_UNSIGNED)
Return rigid bodies by a box query.
Definition: PhysicsWorld2D.cpp:668
bool levelsDirty_
Mipmap levels regeneration needed -flag.
Definition: Texture.h:245
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: TerrainPatch.h:124
CubeMapFace
Cube map faces.
Definition: GraphicsDefs.h:270
bool dataPending_
Data pending flag.
Definition: GPUObject.h:79
bool SetSize(int width, int height, unsigned components)
Set 2D size and number of color components. Old image data will be destroyed and new data is undefine...
Definition: Image.cpp:889
SharedPtr< Model > model_
Model.
Definition: StaticModel.h:121
void UnsubscribeFromEvents(Object *sender)
Unsubscribe from a specific sender's events.
Definition: Object.cpp:231
bool HasEventFrames() const
Has event frames.
Definition: ValueAnimation.h:135
Vector< String > GetPassNames() const
Return all pass names.
Definition: Technique.cpp:469
Vector3 position_
Position.
Definition: ParticleEmitter2D.h:40
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: CollisionShape.cpp:918
void SetObjectAnimation(ObjectAnimation *objectAnimation)
Set object animation.
Definition: Animatable.cpp:298
bool IsBidirectional() const
Return whether is bidirectional.
Definition: OffMeshConnection.h:66
void * MapBuffer(unsigned start, unsigned count, bool discard)
Map the GPU buffer into CPU memory. Not used on OpenGL.
Definition: OGLIndexBuffer.cpp:265
void Insert(unsigned pos, const PODVector< T > &vector)
Insert another vector at position.
Definition: Vector.h:879
Text * titleText_
Title text element.
Definition: MessageBox.h:69
float timer_
Time elapsed from creation.
Definition: ParticleEmitter.h:40
XMLElement GetOrCreateChild(const String &name)
Return the first child element with name or create if does not exist.
Definition: XMLElement.cpp:109
unsigned long long GetMemoryUse(StringHash type) const
Return total memory use for a resource type.
Definition: ResourceCache.cpp:771
const AttributeInfo & GetAttributeInfo() const
Return attribute information.
Definition: Animatable.h:51
ResourceRefList materialsAttr_
Material list attribute.
Definition: StaticModel.h:125
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: AnimatedModel.cpp:323
SharedPtr< FreeTypeLibrary > freeType_
FreeType library.
Definition: FontFaceFreeType.h:59
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: CrowdAgent.cpp:603
List< Pair< SharedArrayPtr< signed char >, unsigned > > buffers_
Buffers and their sizes.
Definition: BufferedSoundStream.h:62
SharedPtr< Technique > technique_
Technique.
Definition: Material.h:66
void SetType(VariantType newType)
Set new type and allocate/deallocate memory as necessary.
Definition: Variant.cpp:623
Event profiling data for one block in the event profiling tree.
Definition: EventProfiler.h:31
void Reserve(unsigned newCapacity)
Set new capacity.
Definition: Str.cpp:455
static bool IsSupported()
Return if high-resolution timer is supported.
Definition: Timer.h:62
void Move(float timeStep)
Move the controlled Node to the next position along the SplinePath based off the Speed value.
Definition: SplinePath.cpp:222
void RaycastSingle(PhysicsRaycastResult2D &result, const Vector2 &startPoint, const Vector2 &endPoint, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world raycast and return the closest hit.
Definition: PhysicsWorld2D.cpp:554
bool visible_
Visible flag.
Definition: UIElement.h:710
Polyhedron(const Polyhedron &polyhedron)
Copy-construct from another polyhedron.
Definition: Polyhedron.h:46
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLTextureCube.cpp:46
float time_
Time position.
Definition: AnimationState.h:173
String lastShaderName_
Last used shader name in shader variation query.
Definition: Graphics.h:857
@ IM_NONE
No interpolation.
Definition: ValueAnimation.h:40
int numArguments_
Number of arguments being pushed so far. For internal use only.
Definition: LuaFunction.h:105
void RemoveEventHandlers(Object *sender) override
Remove all scripted event handlers for a specific sender.
Definition: LuaScript.cpp:205
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Terrain.cpp:151
TextureCoordinate
Texture coordinates.
Definition: GraphicsDefs.h:252
unsigned IndexOf(const T &value) const
Return index of value in vector, or size if not found.
Definition: Vector.h:482
Variant(const VectorBuffer &value)
Construct from a VectorBuffer and store as a buffer.
Definition: Variant.h:427
Renderer2D(Context *context)
Construct.
Definition: Renderer2D.cpp:62
FocusMode focusMode_
Focus mode.
Definition: UIElement.h:716
HashMap()
Construct empty.
Definition: HashMap.h:218
Hardware constant buffer.
Definition: ConstantBuffer.h:34
static const Color WHITE
Opaque white color.
Definition: Color.h:265
@ AM_NOEDIT
Attribute should not be shown in the editor.
Definition: Attribute.h:47
SharedPtr< Animation > animation_
Animation.
Definition: AnimationState.h:163
~LuaScriptEventInvoker() override
Destruct.
void Initialize(unsigned numButtons, unsigned numAxes, unsigned numHats)
Initialize the number of buttons, axes and hats and set them to neutral state.
Definition: Input.cpp:329
int multiSample_
Multisampling level (1 = no multisampling).
Definition: RenderPath.h:84
unsigned geometryIndex_
Current geometry being updated.
Definition: CustomGeometry.h:174
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Camera.cpp:636
double GetDouble(const String &name) const
Return a double attribute, or zero if missing.
Definition: XMLElement.cpp:797
void SetNATServerInfo(const String &address, unsigned short port)
Set NAT server information.
Definition: Network.cpp:467
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: Text.cpp:101
void HandleScriptFileReload(StringHash eventType, VariantMap &eventData)
Handle script file reload start.
Definition: ScriptInstance.cpp:949
void SetPatchSize(int size)
Set patch quads per side. Must be a power of two.
Definition: Terrain.cpp:183
unsigned regCount_
Number of registers on Direct3D9.
Definition: ShaderVariation.h:71
const char ** GetEnumValues(int asTypeID)
Returns an array of strings of enum value names for Enum Attributes.
Definition: Script.cpp:314
void SetShadowQuality(ShadowQuality quality)
Set shadow quality mode. See the SHADOWQUALITY enum in GraphicsDefs.h.
Definition: Renderer.cpp:378
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: Text.cpp:240
bool Run()
Start running the thread. Return true if successful, or false if already running or if can not create...
Definition: Thread.cpp:74
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Constraint2D.cpp:58
bool Rehash(unsigned numBuckets)
Rehash to a specific bucket count, which must be a power of two. Return true if successful.
Definition: HashSet.h:442
void SetEffectShadowOffset(const IntVector2 &offset)
Set shadow offset.
Definition: Text3D.cpp:283
void * GetSampler() const
Return sampler state object. Only used on Direct3D11.
Definition: Texture.h:160
void CheckFeatureSupport()
Check supported rendering features.
Definition: OGLGraphics.cpp:2731
ResourceRef GetSpriteAttr() const
Return sprite attribute.
Definition: StaticSprite2D.cpp:255
bool CheckViewportWrite(const RenderPathCommand &command)
Check if a command writes into the destination render target.
Definition: View.cpp:1916
float sortDistance_
Sort distance. Used internally.
Definition: BillboardSet.h:55
Vector2 pivot_
Pivot Position.
Definition: UIElement.h:795
bool autoReloadResources_
Automatic resource reloading flag.
Definition: ResourceCache.h:248
T * operator->() const
Point to the object.
Definition: Ptr.h:131
void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel)
Set whether mouse wheel can control also a non-focused element.
Definition: UI.cpp:676
Orientation
UI element orientation.
Definition: UIElement.h:65
bool SetRemoveOnCompletion(const String &name, bool removeOnCompletion)
Set whether an animation auto-removes on completion.
Definition: AnimationController.cpp:381
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: AnimatedModel.cpp:146
float GetMaxTorque() const
Set max torque.
Definition: ConstraintFriction2D.h:57
bool IsConnected() const
Return whether is fully connected.
Definition: Connection.cpp:1068
bool SetLayer(const String &name, unsigned char layer)
Set animation blending layer priority. Return true on success.
Definition: AnimationController.cpp:300
SpriterData * spriterData_
Spriter data.
Definition: SpriterInstance2D.h:95
StaticSprite2D(Context *context)
Construct.
Definition: StaticSprite2D.cpp:42
JSONValue(const JSONObject &value)
Construct with a JSON object.
Definition: JSONValue.h:131
void AddGPUObject(GPUObject *object)
Add a GPU object to keep track of. Called by GPUObject.
Definition: Graphics.cpp:385
bool Defined() const
Return true if this sphere is defined via a previous call to Define() or Merge().
Definition: Sphere.h:150
void SetVector3ArrayParameter(unsigned offset, unsigned rows, const void *data)
Set a Vector3 array parameter and mark buffer dirty.
Definition: ConstantBuffer.cpp:54
float GetHitDistance(const Ray &ray, Vector3 *outNormal=nullptr, Vector2 *outUV=nullptr) const
Return ray hit distance or infinity if no hit. Requires raw data to be set. Optionally return hit nor...
Definition: Geometry.cpp:302
unsigned GetScriptNestingLevel()
Return current script nesting level.
Definition: Script.h:119
MessageBox(Context *context, const String &messageString=String::EMPTY, const String &titleString=String::EMPTY, XMLFile *layoutFile=nullptr, XMLFile *styleFile=nullptr)
Construct. If layout file is not given, use the default message box layout. If style file is not give...
Definition: MessageBox.cpp:39
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Cursor.cpp:112
JSONObjectIterator Begin()
Return iterator to the beginning.
Definition: JSONValue.cpp:304
const Vector< String > GetEntryNames() const
Return list of file names in the package.
Definition: PackageFile.h:86
bool opacityDirty_
Derived opacity dirty flag.
Definition: UIElement.h:803
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: CrowdManager.cpp:640
float rotationStart_
Rotation start.
Definition: ParticleEffect2D.h:322
void Update(float timeStep)
Update scene. Called by HandleUpdate.
Definition: Scene.cpp:760
void SetCustom(const T &value)
Set custom value.
Definition: Variant.h:1084
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: ParticleEmitter.cpp:575
const IntVector2 & GetViewSize() const
Return view dimensions.
Definition: View.h:160
bool SetAttribute(const String &name, const String &value)
Set an attribute.
Definition: XMLElement.cpp:288
Quaternion Slerp(const Quaternion &rhs, float t) const
Spherical interpolation with another quaternion.
Definition: Quaternion.cpp:249
~Script() override
Destruct. Release the AngelScript engine.
Definition: Script.cpp:156
void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
Set horizontal and vertical alignment.
Definition: Text3D.cpp:233
void SetMaterial(Material *material)
Set material.
Definition: Terrain.cpp:252
VectorBuffer contacts_
Preallocated buffer for physics collision contact data.
Definition: PhysicsWorld.h:338
Vector< SharedPtr< Geometry > > geometries_
Geometries.
Definition: Renderer2D.h:64
int maxSortedInstances_
Maximum sorted instances per batch group.
Definition: Renderer.h:560
Bone * GetStartBone(const String &name) const
Return animation start bone, or null if no such animation.
Definition: AnimationController.cpp:489
b2FixtureDef fixtureDef_
Fixture def.
Definition: CollisionShape2D.h:112
Vector< AttributeInfo > xmlAttributeInfos_
XML format attribute infos.
Definition: UnknownComponent.h:95
unsigned register_
Direct3D9 register index.
Definition: ShaderVariation.h:61
void SetReuseShadowMaps(bool enable)
Set reuse of shadow maps. Default is true. If disabled, also transparent geometry can be shadowed.
Definition: Renderer.cpp:441
Bone * GetBone(unsigned index)
Return bone by index.
Definition: Skeleton.cpp:186
2D view batch info.
Definition: Renderer2D.h:40
AllocatorBlock * allocator_
Node allocator.
Definition: ListBase.h:120
void UpdateViewBatchInfo(ViewBatchInfo2D &viewBatchInfo, Camera *camera)
Update view batch info.
Definition: Renderer2D.cpp:419
void MarkShadersLoaded(unsigned frameNumber)
Mark shaders loaded this frame.
Definition: Technique.cpp:179
static void RegisterObject(Context *context)
Register object factory.
Definition: TextureCube.cpp:79
bool operator==(const Variant &rhs) const
Test for equality with another variant.
Definition: Variant.cpp:150
int GetMultiSample() const
Return texture multisampling level (1 = no multisampling).
Definition: Texture.h:109
void SetPlayPosition(signed char *pos)
Set new playback position.
Definition: SoundSource.cpp:319
float Value() const
Return value as defined for HSV: largest value of the RGB components. Equivalent to calling MinRGB().
Definition: Color.h:186
unsigned GetLayers() const
Return number of layers in the texture.
Definition: Texture2DArray.h:71
bool IsFixedScreenSize() const
Return whether billboards are fixed screen size.
Definition: BillboardSet.h:125
Custom variant value. This type is not abstract to store it in the VariantValue by value.
Definition: Variant.h:168
void SetWindowTitle(const String &windowTitle)
Set window title.
Definition: Graphics.cpp:73
const T & Front() const
Return const first element.
Definition: Vector.h:510
@ LT_INVALID
Invalid.
Definition: TileMapDefs2D.h:84
VariantVector GetObstacleAvoidanceTypesAttr() const
Return all the obstacle avoidance types configured in the crowd as attribute.
Definition: CrowdManager.cpp:511
bool serializeParticles_
Serialize particles flag.
Definition: ParticleEmitter.h:150
unsigned basePassFlags_
Base pass flags, bit per batch.
Definition: Drawable.h:379
int GetTimeStepSmoothing() const
Return how many frames to average for timestep smoothing.
Definition: Engine.h:91
~View3D() override
Destruct.
Definition: View3D.cpp:59
Memory area that can be read and written to as a stream.
Definition: MemoryBuffer.h:31
Vector< SharedPtr< TileMapObject2D > > GetTileCollisionShapes(unsigned gid) const
Return tile collision shapes for a given gid.
Definition: TmxFile2D.cpp:564
File.
Definition: SpriterData2D.h:86
bool BackgroundLoadResource(StringHash type, const String &name, bool sendEventOnFailure=true, Resource *caller=nullptr)
Background load a resource. An event will be sent when complete. Return true if successfully stored t...
Definition: ResourceCache.cpp:638
unsigned GetSampleSize() const
Return sample size.
Definition: SoundStream.cpp:57
void SetTrigger(bool enable)
Set rigid body trigger mode. In trigger mode collisions are reported but do not apply forces.
Definition: RigidBody.cpp:469
~Font() override
Destruct.
Definition: Font.cpp:64
Triangle mesh geometry data.
Definition: CollisionShape.h:92
float GetRawHeight(int x, int z) const
Return an uninterpolated terrain height value, clamping to edges.
Definition: Terrain.cpp:1297
bool GetClipChildren() const
Return whether should clip child elements.
Definition: UIElement.h:496
T * First() const
Return first element, or null if empty.
Definition: LinkedList.h:169
void SetEmitting(bool emitting)
Set whether trail should be emitting.
Definition: RibbonTrail.cpp:337
ConstIterator & operator++()
Preincrement the pointer.
Definition: List.h:132
virtual void FixedUpdate(float timeStep)
Called on physics update, fixed timestep.
Definition: LogicComponent.cpp:59
Vector4 ModelTransform(const Matrix4 &transform, const Vector3 &vertex) const
Apply modelview transform to vertex.
Definition: OcclusionBuffer.cpp:543
void Wait()
Wait on the condition.
Definition: Condition.cpp:88
void SetDirection(const Vector3 &direction)
Set forward direction in parent space. Positive Z axis equals identity rotation.
Definition: Node.cpp:458
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: StaticModelGroup.cpp:202
DumpMode
Output mode for DumpAPI method.
Definition: Script.h:48
Node()=default
Construct undefined.
bool modalAutoDismiss_
Modal auto dismiss (with escape key) flag. Default true.
Definition: Window.h:161
void SendPackageToClient(PackageFile *package)
Trigger client connection to download a package file from the server. Can be used to download additio...
Definition: Connection.cpp:1151
void Scale(float scale)
Modify scale in parent space uniformly.
Definition: Node.cpp:702
Vector3 Center() const
Return center.
Definition: BoundingBox.h:262
static const Vector3 LEFT
(-1,0,0) vector.
Definition: Vector3.h:483
WeakPtr< Node > controlledNode_
Node to be moved along the SplinePath.
Definition: SplinePath.h:138
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:98
bool IsOccludee() const
Return occludee flag.
Definition: Terrain.h:193
ScriptFile(Context *context)
Construct.
Definition: ScriptFile.cpp:98
bool needUpdate_
Need update flag.
Definition: ParticleEmitter.h:148
const Rect & GetTextureRect() const
Return texture rect.
Definition: StaticSprite2D.h:83
bool charLocationsDirty_
Char positions dirty flag.
Definition: Text.h:233
Vector< float > skidInfoCumulative_
Per-wheel extra settings.
Definition: RaycastVehicle.h:200
void EndSendEvent()
End event send. Clean up if necessary.
Definition: Context.cpp:62
Node(const T &key, const U &value)
Construct with key and value.
Definition: HashMap.h:88
unsigned GetUInt() const
Return unsigned int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1130
JSONObjectIterator End()
Return iterator to the end.
Definition: JSONValue.cpp:320
Vector< ColorFrame > colorFrames_
Particle color animation frames.
Definition: ParticleEffect.h:419
static bool PushLuaFunction(lua_State *L, const String &functionName)
Push Lua function to stack. Return true if is successful. Return false on any error and an error stri...
Definition: LuaScript.cpp:490
RenderSurface * GetLinkedDepthStencil() const
Return linked depth-stencil surface.
Definition: RenderSurface.h:93
PODVector< bool > buttons_
Button up/down state.
Definition: Input.h:119
float drawDistance_
Draw distance.
Definition: Terrain.h:309
AutoRemoveMode autoRemove_
Automatic removal mode.
Definition: SoundSource.h:148
Vector< ModelMorph > morphs_
Vertex morphs.
Definition: Model.h:220
pugi::xpath_node_set * resultSet_
Pugixml xpath_node_set.
Definition: XMLElement.h:350
const RenderPathCommand * lightVolumeCommand_
Pointer to the light volume command if any.
Definition: View.h:433
unsigned keyFrame_
Last key frame.
Definition: AnimationState.h:67
bool simulating_
Simulating flag.
Definition: PhysicsWorld.h:356
Texture2D * GetTexture() const
Return texture.
Definition: SpriteSheet2D.h:61
unsigned maxScratchBufferRequest_
Largest scratch buffer request this frame.
Definition: Graphics.h:765
unsigned GetInterpolatedColor(float x, float y)
Return an interpolated color for the UI element.
Definition: UIBatch.cpp:418
ResourceRef GetHeightMapAttr() const
Return heightmap attribute.
Definition: Terrain.cpp:843
void SetUseMutableGlyphs(bool enable)
Set whether to use mutable (eraseable) glyphs to ensure a font face never expands to more than one te...
Definition: UI.cpp:691
bool WriteFileID(const String &value)
Write a four-letter file ID. If the string is not long enough, spaces will be appended.
Definition: Serializer.cpp:190
Plane(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2) noexcept
Construct from 3 vertices.
Definition: Plane.h:44
unsigned GetLastModifiedTime(const String &fileName) const
Returns the file's last modified time as seconds since 1.1.1970, or 0 if can not be accessed.
Definition: FileSystem.cpp:573
int bottom_
Bottom coordinate.
Definition: Rect.h:467
Object * sender_
Event sender.
Definition: Object.h:289
void SetBaseIndent(int baseIndent)
Set base indent, i.e. the indent level of the ultimate parent item.
Definition: ListView.cpp:748
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event. The HUD texts are updated here.
Definition: DebugHud.cpp:303
float finishParticleSizeVariance_
Finish particle size variance.
Definition: ParticleEffect2D.h:302
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: BillboardSet.cpp:135
void Scale2D(const Vector2 &scale)
Modify scale in parent space (for Urho2D).
Definition: Node.h:274
bool GetDrawObstacles() const
Return whether to draw Obstacles.
Definition: DynamicNavigationMesh.h:99
float GetMaxRotation() const
Return particle maximum rotation.
Definition: ParticleEffect.h:302
static void RegisterObject(Context *context)
Register object factory.
Definition: NetworkPriority.cpp:51
Rect textureRect_
Texture rectangle.
Definition: StaticSprite2D.h:166
void ProcessLight(LightQueryResult &query, unsigned threadIndex)
Query for lit geometries and shadow casters for a light.
Definition: View.cpp:2276
float GetWheelSideSlipSpeed(int wheel) const
Get wheel slide speed.
Definition: RaycastVehicle.cpp:543
void Resize(unsigned newSize)
Resize the vector.
Definition: Vector.h:1030
void Invert(bool invertAlpha=false)
Inverts the RGB channels and optionally the alpha channel as well.
Definition: Color.cpp:230
WrapMode GetWrapMode() const
Return wrap mode.
Definition: ValueAnimationInfo.h:69
void BeginBlock(StringHash eventID)
Begin timing a profiling block based on an event ID.
Definition: EventProfiler.h:76
Frustum GetFrustum() const
Return spotlight frustum.
Definition: Light.cpp:455
StringHash nameHash_
Name hash.
Definition: Animation.h:94
unsigned char renderOrder_
Render order value.
Definition: Material.h:305
void SetFaceCameraMode(FaceCameraMode mode)
Set how the text should rotate in relation to the camera. Default is to not rotate (FC_NONE).
Definition: Text3D.cpp:371
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: Skybox.cpp:53
bool operator==(const Pair< T, U > &rhs) const
Test for equality with another pair.
Definition: Pair.h:45
void SetNumParticles(unsigned num)
Set maximum number of particles.
Definition: ParticleEmitter.cpp:283
bool IsFadingOut(const String &name) const
Return whether an animation is fading out.
Definition: AnimationController.cpp:460
void SetHeight(int height)
Set height only.
Definition: UIElement.cpp:598
RenderTargetSizeMode sizeMode_
Size mode.
Definition: RenderPath.h:82
Vector2 GetVector2(const String &name) const
Return a Vector2 attribute, or zero vector if missing.
Definition: XMLElement.cpp:950
StringHash GetType() const
Return type hash of objects created by this factory.
Definition: Object.h:219
void QueueUpdate()
Queue manual update on the render texture.
Definition: View3D.cpp:124
virtual void OnSetEnabled()
Handle enabled/disabled state change.
Definition: Component.h:61
void HandleTargetPosition(StringHash eventType, VariantMap &eventData)
Handle SmoothedTransform target position update.
Definition: RigidBody.cpp:1038
int GetWidth() const
Return width.
Definition: UIElement.h:415
SharedPtr< Geometry > geometry_
Geometry.
Definition: RibbonTrail.h:203
bool geometryDirty_
Geometry dirty flag.
Definition: Text3D.h:212
bool SetTime(float time)
Set time position and apply. Return true when the animation is finished. No-op when the target object...
Definition: ValueAnimationInfo.cpp:75
Variant data_
Trigger data.
Definition: Animation.h:113
static void RegisterObject(Context *context)
Register object factory.
Definition: Text.cpp:78
bool SetDrawRange(PrimitiveType type, unsigned indexStart, unsigned indexCount, bool getUsedVertexRange=true)
Set the draw range.
Definition: Geometry.cpp:84
bool debugDepthTest_
Debug draw depth test mode.
Definition: PhysicsWorld2D.h:233
void SetBaseVelocity(const Vector3 &baseVelocity)
Set base velocity applied to the trail.
Definition: RibbonTrail.cpp:859
bool customProjection_
Use custom projection matrix flag. Used internally.
Definition: Camera.h:284
unsigned GetNumPersistentChildren() const
Calculate number of non-temporary child nodes.
Definition: Node.cpp:1868
HashMap< String, Timer > changes_
Pending changes. These will be returned and removed from the list when their timer has exceeded the d...
Definition: FileWatcher.h:73
bool IsThreadedUpdate() const
Return threaded update flag.
Definition: Scene.h:226
const Vector2 & GetVertex1() const
Return vertex 1.
Definition: CollisionEdge2D.h:51
DebugLine(const Vector3 &start, const Vector3 &end, unsigned color)
Construct with start and end positions and color.
Definition: DebugRenderer.h:50
void SetContactProcessingThreshold(float threshold)
Set contact processing threshold.
Definition: RigidBody.cpp:410
PODVector< CrowdAgent * > GetAgents(Node *node=nullptr, bool inCrowdFilter=true) const
Get all the crowd agent components in the specified node hierarchy. If the node is not specified then...
Definition: CrowdManager.cpp:548
const Vector2 & GetOtherBodyAnchor() const
Return other body anchor.
Definition: ConstraintPulley2D.h:64
Node * Clone(CreateMode mode=REPLICATED)
Clone scene node, components and child nodes. Return the clone.
Definition: Node.cpp:1101
String url_
URL.
Definition: HttpRequest.h:85
~XMLFile() override
Destruct.
AttributeMode
Definition: Attribute.h:34
SharedPtr< Texture2D > texture_
Texture.
Definition: SpriteSheet2D.h:84
btRigidBody * GetBody() const
Return Bullet rigid body.
Definition: RigidBody.h:156
void PushBool(bool value)
Push bool to stack.
Definition: LuaFunction.cpp:109
void SetUpdateEnabled(bool enable)
Enable or disable scene update.
Definition: Scene.cpp:644
bool SetVariant(const Variant &value)
Set a variant attribute.
Definition: XMLElement.cpp:412
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: DecalSet.cpp:215
Description of a navigation mesh geometry component, with transform and bounds information.
Definition: NavigationMesh.h:59
bool boundingBoxDirty_
Bounding box needs update flag.
Definition: DecalSet.h:245
String name_
Shader parameter name.
Definition: Material.h:96
ColorFrame(const Color &color)
Construct with a color and zero time.
Definition: ParticleEffect.h:53
ViewOverrideFlags GetViewOverrideFlags() const
Return view override flags.
Definition: Camera.h:134
void SetDepthWrite(bool enable)
Set depth write on/off.
Definition: OGLGraphics.cpp:1834
WeakPtr< XMLFile > appliedStyleFile_
Last applied style file.
Definition: UIElement.h:813
unsigned level_
Subdivision level.
Definition: Octree.h:148
bool stereo_
Stereo flag.
Definition: Audio.h:141
void PrepareNetworkUpdate()
Prepare network update by comparing attributes and marking replication states dirty as necessary.
Definition: Component.cpp:168
CollisionGeometryDataCache triMeshCache_
Cache for trimesh geometry data by model and LOD level.
Definition: PhysicsWorld.h:328
RWOpsWrapper(T &object)
Construct with object reference.
Definition: RWOpsWrapper.h:37
HashMap< String, PackageEntry > entries_
File entries.
Definition: PackageFile.h:90
void SetStaticPlane(const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a static plane.
Definition: CollisionShape.cpp:604
const String & GetName() const
Return shader parameter name.
Definition: Material.h:88
Timer clickTimer_
Timer used to trigger double click.
Definition: UI.h:417
bool hasMutableGlyph_
Has mutable glyph.
Definition: FontFaceFreeType.h:71
void StoreScriptAttributes()
Store values of script attributes for hot reload.
Definition: ScriptInstance.cpp:728
Octant(const BoundingBox &box, unsigned level, Octant *parent, Octree *root, unsigned index=ROOT_INDEX)
Construct.
Definition: Octree.cpp:71
void * userData_
Userdata.
Definition: Object.h:293
constexpr RandomAccessIterator(T *ptr)
Construct with an object pointer.
Definition: Iter.h:40
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post update.
Definition: ParticleEmitter2D.cpp:277
void SetRange(float range)
Set slider range maximum value (minimum value is always 0).
Definition: Slider.cpp:172
void SetWheelDampingCompression(int wheel, float compression)
Set wheel damping compression.
Definition: RaycastVehicle.cpp:494
void Decompose(Vector3 &translation, Quaternion &rotation, Vector3 &scale) const
Return decomposition to translation, rotation and scale.
Definition: Matrix3x4.cpp:41
void MixStereoToStereo(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix stereo sample to stereo buffer.
Definition: SoundSource.cpp:995
~Pass() override
Destruct.
void SetScriptFile(LuaFile *scriptFile)
Set script file.
Definition: LuaScriptInstance.cpp:394
float occluderSizeThreshold_
Occluder screen size threshold.
Definition: Renderer.h:566
Orientation2D
Orientation.
Definition: TileMapDefs2D.h:36
sqlite3 * connectionImpl_
The underlying implementation connection object.
Definition: SQLiteConnection.h:62
void Merge(const IntRect &rect)
Definition: Rect.cpp:55
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintPrismatic2D.cpp:46
Vector3 GetVelocityAtPoint(const Vector3 &position) const
Return linear velocity at local point.
Definition: RigidBody.cpp:628
Rendertarget definition.
Definition: RenderPath.h:68
void RemoveResourceDir(const String &pathName)
Remove a resource load directory.
Definition: ResourceCache.cpp:183
float GetWheelRestLength(int wheel) const
Get wheel rest length.
Definition: RaycastVehicle.cpp:657
void CollectGeometries(Vector< NavigationGeometryInfo > &geometryList)
Collect geometry from under Navigable components.
Definition: NavigationMesh.cpp:953
static const char * elementSemanticNames[]
D3D11 vertex semantic names. Used internally.
Definition: ShaderVariation.h:141
static const Urho3D::String & GetTypeNameStatic()
Return static type name.
Definition: UnknownComponent.h:83
void SetEnableAnchor(bool enable)
Enable automatic positioning & sizing of the element relative to its parent using min/max anchor and ...
Definition: UIElement.cpp:742
PODVector< VertexElement > rawElements_
Raw vertex data elements.
Definition: Geometry.h:133
void InsertFront(T *element)
Insert an element at the beginning.
Definition: LinkedList.h:93
bool bufferSizeDirty_
Buffers need resize flag.
Definition: RibbonTrail.h:211
JSONValueType
JSON value type.
Definition: JSONValue.h:33
IntVector2 dragBeginPosition_
Original slider position at drag begin.
Definition: Slider.h:114
bool SetSize(int width, int height, int depth, unsigned format, TextureUsage usage=TEXTURE_STATIC)
Set size, format and usage. Zero size will follow application window size. Return true if successful.
Definition: Texture3D.cpp:159
b2MouseJointDef jointDef_
Box2D joint def.
Definition: ConstraintMouse2D.h:69
b2Fixture * GetFixture() const
Return fixture.
Definition: CollisionShape2D.h:99
void RemovePass(const String &name)
Remove a pass.
Definition: Technique.cpp:426
float GetBoneWeight(unsigned index) const
Return per-bone blending weight by track index.
Definition: AnimationState.cpp:389
unsigned Write(const void *data, unsigned size) override
Write bytes to the memory area.
Definition: MemoryBuffer.cpp:87
const TmxLayer2D * GetLayer(unsigned index) const
Return layer at index.
Definition: TmxFile2D.cpp:582
bool GetPerVertex() const
Return vertex lighting mode.
Definition: Light.h:220
String ToString() const override
Convert custom value to string.
Definition: Variant.h:267
float GetRowWidth(unsigned index) const
Return width of row by index.
Definition: Text.cpp:414
void RemoveAllTriggers()
Remove all trigger points.
Definition: Animation.cpp:364
void HandleMessage(const SLNet::AddressOrGUID &source, int packetID, int msgID, const char *data, size_t numBytes)
Handle an inbound message.
Definition: Network.cpp:294
PListValue & operator=(const PListValue &rhs)
Assign operator.
Definition: PListFile.cpp:94
bool SaveTGA(const String &fileName) const
Save in TGA format. Return true if successful.
Definition: Image.cpp:1283
Variant(const ResourceRefList &value)
Construct from a resource reference list.
Definition: Variant.h:445
JSONValue(const JSONArray &value)
Construct with a JSON array.
Definition: JSONValue.h:125
Vector3 GetContactNormal(int wheel) const
Get contact normal.
Definition: RaycastVehicle.cpp:536
void NodeAdded(Node *node)
Node added. Assign scene pointer and add to ID map.
Definition: Scene.cpp:906
Vector< SharedPtr< FileWatcher > > fileWatchers_
File watchers for resource directories, if automatic reloading enabled.
Definition: ResourceCache.h:238
BiasParameters depthBias_
Depth bias parameters.
Definition: Material.h:303
void SetFocusOnShow(bool enable)
Set whether to automatically focus the line edit when showing. Default true on desktops and false on ...
Definition: Console.cpp:248
InterpMethod GetInterpolationMethod() const
Return interpolation method.
Definition: ValueAnimation.h:114
unsigned Read(void *dest, unsigned size) override
Read bytes from the pipe without blocking if there is less data available. Return number of bytes act...
Definition: NamedPipe.cpp:274
const T & Back() const
Return const last element.
Definition: Vector.h:1144
void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
Set horizontal and vertical alignment.
Definition: UIElement.cpp:670
LuaFile * GetScriptFile() const
Return script file.
Definition: LuaScriptInstance.cpp:462
void AddChild(UIElement *element)
Add a child element.
Definition: UIElement.cpp:1288
bool reserved_
Reserved flag.
Definition: Graphics.h:77
float shadowMaxExtrusion_
Directional shadow max. extrusion distance.
Definition: Light.h:391
CullMode GetCullMode() const
Return hardware culling mode.
Definition: Graphics.h:510
unsigned ConvertFormatToNumComponents(unsigned format)
Convert graphics format to number of components.
Definition: FontFaceBitmap.cpp:344
void GetFaces(Vector< PODVector< DecalVertex > > &faces, Drawable *target, unsigned batchIndex, const Frustum &frustum, const Vector3 &decalNormal, float normalCutoff)
Get triangle faces from the target geometry.
Definition: DecalSet.cpp:697
CompressedFormat
Supported compressed image formats.
Definition: Image.h:38
SharedPtr< Scene > scene_
Scene.
Definition: View3D.h:91
void SetEffectRoundStroke(bool roundStroke)
Set stroke rounding. Corners of the font will be rounded off in the stroke so the stroke won't have c...
Definition: Text.cpp:399
const Vector2 & GetPosition() const
Return position.
Definition: TmxFile2D.h:139
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: RibbonTrail.cpp:374
float distanceFactor_
Priority reduction distance factor.
Definition: NetworkPriority.h:71
unsigned GetUseTimer()
Return time since last use in milliseconds. If referred to elsewhere than in the resource cache,...
Definition: Resource.cpp:120
float Random()
Return a random float between 0.0 (inclusive) and 1.0 (exclusive).
Definition: MathDefs.h:284
void AddBoundingBox(const BoundingBox &box, const Color &color, bool depthTest=true, bool solid=false)
Add a bounding box.
Definition: DebugRenderer.cpp:144
bool BeginLoadSpriter(Deserializer &source)
Begin load scml.
Definition: AnimationSet2D.cpp:283
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ValueAnimation.cpp:78
float GetShadowRange() const
Return shadow maximum range.
Definition: Light.h:101
bool persistent_
Should be persistent and not shared/reused between other buffers of same size.
Definition: RenderPath.h:96
bool setInstanceDefault_
When true, store the attribute value as instance's default value (internal use only).
Definition: Serializable.h:146
bool stereo_
Stereo flag.
Definition: Sound.h:130
float GetSpeed() const
Return speed.
Definition: AnimatedSprite2D.h:92
bool IsSoundTypePaused(const String &type) const
Return whether specific sound type has been paused.
Definition: Audio.cpp:216
unsigned GetOcclusionLodLevel() const
Return LOD level used for occlusion.
Definition: Terrain.h:120
Vector3(const IntVector3 &vector) noexcept
Construct from an IntVector3.
Definition: Vector3.h:215
TileMapLayerType2D GetLayerType() const
Return layer type.
Definition: TileMapLayer2D.cpp:269
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: DecalSet.cpp:665
bool Rehash(unsigned numBuckets)
Rehash to a specific bucket count, which must be a power of two. Return true if successful.
Definition: HashMap.h:509
ConstIterator & operator--()
Predecrement the pointer.
Definition: HashMap.h:196
PODVector< float > axes_
Axis position from -1 to 1.
Definition: Input.h:123
const Vector2 & GetTarget() const
Return target.
Definition: ConstraintMouse2D.h:53
@ AM_DEFAULT
Attribute used for both file serialization and network replication (default).
Definition: Attribute.h:43
Vector4 GetReflectionPlaneAttr() const
Return reflection plane attribute.
Definition: Camera.cpp:626
Vector< SharedPtr< Connection > > GetClientConnections() const
Return all client connections.
Definition: Network.cpp:673
unsigned NextPowerOfTwo(unsigned value)
Round up to next power of two.
Definition: MathDefs.h:240
float finishParticleSize_
Finish particle size.
Definition: ParticleEffect2D.h:300
HttpRequestState state_
Connection state.
Definition: HttpRequest.h:95
bool internal_
Internally created flag.
Definition: UIElement.h:714
void SetModel(Model *model)
Set triangle mesh / convex hull model.
Definition: CollisionShape.cpp:793
T * GetComponent() const
Template version of returning a component in the same scene node by type.
Definition: Component.h:147
bool GetWEIGHT_NLERP() const
Need these wrapper functions flags of GetFeature/SetFeature can be correctly exposed to the editor an...
const PODVector< Light * > & GetLights() const
Return per-pixel lights.
Definition: Drawable.h:275
void SetParticleLifespanVariance(float particleLifespanVariance)
Set particle lifespan variance.
Definition: ParticleEffect2D.cpp:324
ViewBatchInfo2D()
Construct.
Definition: Renderer2D.cpp:53
const Vector2 & GetVertex(unsigned index) const
Return vertex.
Definition: CollisionPolygon2D.h:54
EmitterType2D GetEmitterType() const
Return emitter type.
Definition: ParticleEffect2D.h:206
int min_
Minimum value.
Definition: OcclusionBuffer.h:48
bool HasShaderParameter(StringHash param)
Check whether a shader parameter exists on the currently set shaders.
Definition: OGLGraphics.cpp:1462
void Remove()
Remove from the scene node. If no other shared pointer references exist, causes immediate deletion.
Definition: Component.cpp:144
void Update(const FrameInfo &frame) override
Update before octree reinsertion. Is called from a main thread.
Definition: RibbonTrail.cpp:201
Zone * zone_
Current zone.
Definition: Drawable.h:351
~PListFile() override
Destruct.
bool operator<(const WeakPtr< U > &rhs) const
Test for less than with another weak pointer.
Definition: Ptr.h:436
String(const char *str, unsigned length)
Construct from a char array and length.
Definition: Str.h:97
bool audioPaused_
Audio paused flag.
Definition: Engine.h:158
Intersection IsInsideFast(const Sphere &sphere) const
Test if another sphere is (partially) inside or outside.
Definition: Sphere.h:178
void Clear()
End Shape Generation Helper Functions.
Definition: CustomGeometry.cpp:492
void SetRotation(const Quaternion &rotation)
Set constraint rotation relative to own body.
Definition: Constraint.cpp:187
UnknownComponent(Context *context)
Construct.
Definition: UnknownComponent.cpp:84
int GetPriority() const
Return priority.
Definition: UIElement.h:481
bool GetAutoResolve() const
Return texture multisampling autoresolve mode. When true, the texture is resolved before being sample...
Definition: Texture.h:112
~LuaScript() override
Destruct.
Definition: LuaScript.cpp:145
String pipeName_
Pipe name.
Definition: NamedPipe.h:72
DeferredLightPSVariation
Deferred light volume pixels shader variations.
Definition: Renderer.h:121
bool cursorMovable_
Cursor movable flag.
Definition: LineEdit.h:152
Definition: UISelectable.h:31
void SetPassword(const String &password)
Set password for the client/server communcation.
Definition: Network.cpp:363
bool bidirectional_
Bidirectional flag.
Definition: OffMeshConnection.h:84
void Clear()
Clear the map.
Definition: HashMap.h:459
PODVector< float > distances_
Distances.
Definition: Renderer2D.h:60
virtual bool LoadJSON(const JSONValue &source)
Load from JSON data. Return true if successful.
Definition: Serializable.cpp:419
Vector3 MoveAlongSurface(const Vector3 &start, const Vector3 &end, const Vector3 &extents=Vector3::ONE, int maxVisited=3, const dtQueryFilter *filter=nullptr)
Try to move along the surface from one point to another.
Definition: NavigationMesh.cpp:626
GraphicsImpl * impl_
Implementation.
Definition: Graphics.h:710
const pugi::xpath_node * xpathNode_
Pugixml xpath_node.
Definition: XMLElement.h:313
unsigned requestedLevels_
Requested mip levels.
Definition: Texture.h:215
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: PhysicsWorld.cpp:779
Node * FindNode(const T &key, unsigned hashKey, Node *&previous) const
Find a node and the previous node from the buckets. Do not call if the buckets have not been allocate...
Definition: HashSet.h:539
~AnimatedSprite2D() override
Destruct.
Definition: AnimatedSprite2D.cpp:67
void SetWorldTransform(const Vector3 &position, const Quaternion &rotation)
Set both position and rotation in world space as an atomic operation.
Definition: Node.cpp:539
const Vector3 & GetPosition() const
Return position in parent space.
Definition: Node.h:377
~SpriterInstance()
Destructor.
Definition: SpriterInstance2D.cpp:45
void ResetDeepEnabled()
Reset enabled state to the element's remembered state prior to calling SetDeepEnabled.
Definition: UIElement.cpp:901
unsigned fragment_
Current fragment index.
Definition: Connection.h:96
bool emitting_
Currently emitting flag.
Definition: ParticleEmitter2D.h:157
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionEdge2D.cpp:51
void SetWheelRollInfluence(int wheel, float rollInfluence)
Set wheel roll influence.
Definition: RaycastVehicle.cpp:522
void GetDrawablesInternal(OctreeQuery &query, bool inside) const
Return drawable objects by a query, called internally.
Definition: Octree.cpp:229
float farClip_
Far clip distance.
Definition: Camera.h:250
WindowDragMode
Window movement and resizing modes.
Definition: Window.h:33
void SetCoordinateSystem(const IntVector3 &coordinateSystem=RIGHT_FORWARD_UP)
Set the coordinate system. The default is (0, 1, 2).
Definition: RaycastVehicle.cpp:702
void ApplyWorldTransform()
Apply world transform from the Box2D body. Called by PhysicsWorld2D.
Definition: RigidBody2D.cpp:421
bool drawDebug_
Debug draw flag.
Definition: Viewport.h:113
static unsigned GetRGBAFloat32Format()
Return the API-specific RGBA 32-bit float texture format.
Definition: OGLGraphics.cpp:2607
unsigned GetRenderBuffer() const
Return OpenGL renderbuffer if created.
Definition: RenderSurface.h:117
float GetWheelSuspensionStiffness(int wheel) const
Get suspension stiffness for particular wheel.
Definition: RaycastVehicle.cpp:459
T * Cast()
Cast the object to specified most derived class.
Definition: Object.h:109
String clipBoard_
Clipboard text.
Definition: UI.h:375
virtual void OnCrowdUpdate(dtCrowdAgent *ag, float dt)
Handle crowd agent being updated. It is called by CrowdManager::Update() via callback.
Definition: CrowdAgent.cpp:517
T InverseLerp(T lhs, T rhs, T x)
Inverse linear interpolation between two values.
Definition: MathDefs.h:79
bool useTextureRect_
Use texture rectangle flag.
Definition: StaticSprite2D.h:160
bool IsFixedHeight() const
Return true if height is fixed.
Definition: UIElement.h:445
SDL_GLContext context_
SDL OpenGL context.
Definition: OGLGraphicsImpl.h:112
Vector2 GetMassCenter() const
Return mass center.
Definition: RigidBody2D.cpp:525
float radius_
Radius of this obstacle.
Definition: Obstacle.h:84
void SetVertexDistance(float length)
Set distance between points.
Definition: RibbonTrail.cpp:818
PODVector< ReplicationState * > replicationStates_
Replication states that are tracking this object.
Definition: ReplicationState.h:130
AsyncLoadState asyncLoadState_
Asynchronous loading state.
Definition: Resource.h:110
bool depthWrite_
Depth write enable flag.
Definition: Graphics.h:817
bool useClipPlane_
Custom clip plane enable flag.
Definition: Graphics.h:845
Ray GetScreenRay(float x, float y) const
Return ray corresponding to normalized screen coordinates (0 - 1), with origin on the near clip plane...
Definition: Camera.cpp:385
void ScanDirInternal(Vector< String > &result, String path, const String &startPath, const String &filter, unsigned flags, bool recursive) const
Scan directory, called internally.
Definition: FileSystem.cpp:791
CursorShape
Cursor shapes recognized by the UI subsystem.
Definition: Cursor.h:37
bool GetSplitImpulse() const
Return whether split impulse collision mode is enabled.
Definition: PhysicsWorld.cpp:713
UIElement * GetFrontElement() const
Return topmost enabled root-level non-modal element.
Definition: UI.cpp:862
int ReadInt()
Read a 32-bit integer.
Definition: Deserializer.cpp:70
VariantVector GetParticleBillboardsAttr() const
Return billboards attribute. Returns billboard amount only if particles are not to be serialized.
Definition: ParticleEmitter.cpp:412
void SetHeightMapAttr(const ResourceRef &value)
Set heightmap attribute.
Definition: Terrain.cpp:797
IntVector2 GetRenderTargetDimensions() const
Return current rendertarget width and height.
Definition: OGLGraphics.cpp:2186
PODVector() noexcept=default
Construct empty.
Mutex rendererMutex_
Mutex for shadow camera allocation.
Definition: Renderer.h:532
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix3x4.h:681
bool TakeScreenShot(Image &destImage)
Take a screenshot. Return true if successful.
Definition: OGLGraphics.cpp:557
virtual bool FilterImplicitAttributes(XMLElement &dest) const
Filter implicit attributes in serialization process.
Definition: UIElement.cpp:2021
Vector3 ToHSL() const
Return HSL color-space representation as a Vector3; the RGB values are clipped before conversion but ...
Definition: Color.cpp:53
T & Back()
Return last element.
Definition: Vector.h:1137
UniquePtr< btBvhTriangleMeshShape > shape_
Bullet triangle mesh collision shape.
Definition: CollisionShape.h:86
unsigned dataSize_
Morphed vertices data size as bytes.
Definition: Model.h:48
int Refs() const
Return reference count.
Definition: RefCounted.cpp:68
T Cos(T angle)
Return cosine of an angle in degrees.
Definition: MathDefs.h:142
void SetFogColor(const Color &color)
Set fog color.
Definition: Zone.cpp:112
void SetTextEffect(TextEffect textEffect)
Set text effect.
Definition: Text.cpp:384
PODVector< T > & operator=(const PODVector< T > &rhs)
Assign from another vector.
Definition: Vector.h:736
virtual void OnNodeSet(Node *node)
Handle scene node being assigned at creation.
Definition: Component.cpp:238
Vector4() noexcept
Construct a zero vector.
Definition: Vector4.h:35
NetworkState * GetNetworkState() const
Return the network attribute state, if allocated.
Definition: Serializable.h:131
void SendAttributeAnimationRemovedEvent(const String &name)
Send attribute animation remove event.
Definition: ObjectAnimation.cpp:270
UIElement * GetSelectedItem() const
Return selected item, or null if none selected.
Definition: DropDownList.cpp:218
void UpdateInternal(float timeStep)
Actually update sound sources with the specific timestep. Called internally.
Definition: Audio.cpp:328
bool FlipHorizontal()
Flip image horizontally. Return true if successful.
Definition: Image.cpp:1031
virtual const TypeInfo * GetTypeInfo() const =0
Return type info.
Vector2 sourcePositionVariance_
Source position variance.
Definition: ParticleEffect2D.h:262
void SetCommandShaderParameters(const RenderPathCommand &command)
Set command's shader parameters if any. Called internally by View.
Definition: View.cpp:763
float maxNetworkAngularVelocity_
Maximum angular velocity for network replication.
Definition: PhysicsWorld.h:346
void RemoveConstraint(Constraint *constraint)
Remove a constraint that refers to this rigid body.
Definition: RigidBody.cpp:868
void SetCustomVariantValue(const CustomVariantValue &value)
Set custom value.
Definition: Variant.cpp:404
bool IsVisible() const
Return visible.
Definition: TileMapLayer2D.h:76
unsigned ByteOffsetUTF8(unsigned index) const
Return byte offset to char in UTF8 content.
Definition: Str.cpp:798
static unsigned GetRGBAFloat16Format()
Return the API-specific RGBA 16-bit float texture format.
Definition: OGLGraphics.cpp:2598
WeakPtr() noexcept
Construct a null weak pointer.
Definition: Ptr.h:267
IntVector2 hotSpot_
Hotspot coordinates.
Definition: Cursor.h:84
void SetVertex1(const Vector2 &vertex)
Set vertex 1.
Definition: CollisionEdge2D.cpp:61
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix2.h:206
bool GetHeightFog() const
Return whether height fog mode is enabled.
Definition: Zone.h:103
SharedPtr< AnimationSet2D > animationSet_
Animation set.
Definition: AnimatedSprite2D.h:132
void SetOtherRotation(const Quaternion &rotation)
Set constraint rotation relative to the other body. If connected to the static world,...
Definition: Constraint.cpp:229
SharedPtr< Model > model_
Model.
Definition: CollisionShape.h:294
SharedPtr< RenderSurface > renderSurface_
Render surface.
Definition: Texture2D.h:88
unsigned viewFrameNumber_
Last visible frame number.
Definition: Drawable.h:361
bool RequireSDL(unsigned int sdlFlags)
Initialises the specified SDL systems, if not already. Returns true if successful....
Definition: Context.cpp:253
void EndBlock()
End timing the current profiling block.
Definition: Profiler.h:194
bool Null() const
Check if the pointer is null.
Definition: Ptr.h:202
List()
Construct empty.
Definition: List.h:169
View * GetSourceView() const
Return the source view that was already prepared. Used when viewports specify the same culling camera...
Definition: View.cpp:684
float GetShadowNearFarRatio() const
Return shadow camera near/far clip distance ratio.
Definition: Light.h:283
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: Slider.cpp:161
virtual void ReleaseNavigationMesh()
Release the navigation mesh and the query.
Definition: NavigationMesh.cpp:1569
bool GetUseClipping() const
Return whether is using a custom clipping plane.
Definition: Camera.h:182
bool IsSupported() const
Return whether technique is supported by the current hardware.
Definition: Technique.h:222
bool SetVertexBuffers(const PODVector< VertexBuffer * > &buffers, unsigned instanceOffset=0)
Set multiple vertex buffers.
Definition: OGLGraphics.cpp:969
FontHintLevel
Font hinting level (only used for FreeType fonts).
Definition: UI.h:36
bool animationEnabled_
Animation enabled.
Definition: Animatable.h:149
bool GetData(unsigned layer, unsigned level, void *dest) const
Get data from a mip level. The destination buffer must be big enough. Return true if successful.
Definition: OGLTexture2DArray.cpp:371
SharedPtr< Image > GetImage() const
Get image data from zero mip level. Only RGB and RGBA textures are supported.
Definition: Texture2D.cpp:176
void AddSoundSource(SoundSource *soundSource)
Add a sound source to keep track of. Called by SoundSource.
Definition: Audio.cpp:226
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: LogicComponent.cpp:90
float GetMaxSuspensionTravel(int wheel)
Get maximum suspension travel value.
Definition: RaycastVehicle.cpp:613
T Sqrt(T x)
Return square root of X.
Definition: MathDefs.h:166
Spriter::SpriterData * GetSpriterData() const
Return spriter data.
Definition: AnimationSet2D.h:79
void SetRect(const IntRect &rect)
Set view rectangle. A zero rectangle (0 0 0 0) means to use the rendertarget's full dimensions.
Definition: Viewport.cpp:84
WeakPtr< RigidBody2D > rigidBody_
Rigid body.
Definition: CollisionShape2D.h:110
const Variant & GetShaderParameter(const String &name) const
Return a shader parameter (first appearance in any command).
Definition: RenderPath.cpp:510
VectorBase() noexcept
Construct.
Definition: VectorBase.h:45
void Normalize()
Normalize to unit length.
Definition: Vector3.h:332
void HandleChangeLanguage(StringHash eventType, VariantMap &eventData)
Handle change Language.
Definition: Text.cpp:362
float GetDampingRatio() const
Return damping ratio.
Definition: ConstraintDistance2D.h:64
void PatchReplace(const pugi::xml_node &patch, pugi::xpath_node &original) const
Replace a node or attribute in the Patch.
Definition: XMLFile.cpp:246
unsigned maxAgents_
The maximum number of agents the crowd can manage.
Definition: CrowdManager.h:189
bool subscribed_
Subscribed to scene post update event flag.
Definition: DecalSet.h:251
float GetWheelRollInfluence(int wheel) const
Get wheel roll influence.
Definition: RaycastVehicle.cpp:548
Triangle mesh geometry data.
Definition: CollisionShape.h:76
Vector< Pair< WeakPtr< RenderSurface >, WeakPtr< Viewport > > > queuedViewports_
Render surface viewports queued for update.
Definition: Renderer.h:522
int layoutElementMaxSize_
Layout element maximum size in layout direction.
Definition: UIElement.h:732
~StaticSprite2D() override
Destruct.
bool WriteVector2(const Vector2 &value)
Write a Vector2.
Definition: Serializer.cpp:111
float effectDepthBias_
Text effect Z bias.
Definition: Text.h:249
bool IsConnectPending() const
Return whether connection is pending.
Definition: Connection.h:201
WeakPtr< PhysicsWorld > physicsWorld_
Physics world.
Definition: CollisionShape.h:290
void SetConnectPending(bool connectPending)
Set the connection pending status. Called by Network.
Definition: Connection.cpp:244
Vector2 ownerBodyGroundAnchor_
Owner body ground anchor.
Definition: ConstraintPulley2D.h:77
void SetTags(const StringVector &tags)
Set tags. Old tags are overwritten.
Definition: UIElement.cpp:1459
static const Color GRAY
Opaque gray color.
Definition: Color.h:267
Mask describing color channels.
Definition: Color.h:37
Object * receiver_
Event receiver.
Definition: Object.h:287
unsigned resolveDestFBO_
Write frame buffer for multisampled texture resolves.
Definition: OGLGraphicsImpl.h:134
unsigned GetSampleSize() const
Return sample size.
Definition: Sound.cpp:331
~ShaderPrecache() override
Destruct. Write the collected shaders to XML.
Definition: ShaderPrecache.cpp:67
Tile2D * GetTile(int x, int y) const
Return tile.
Definition: TmxFile2D.cpp:219
void SetLodBias(float bias)
Set LOD bias for patches. Affects which terrain LOD to display.
Definition: Terrain.cpp:404
Vector3 boundingBoxMinPoint_
Bounding box min point.
Definition: ParticleEmitter2D.h:161
void SetExecuteConsoleCommands(bool enable)
Set whether to execute engine console commands as script code.
Definition: LuaScript.cpp:322
TextureFilterMode GetTextureFilterMode() const
Return default texture filtering mode.
Definition: Renderer.h:280
UniquePtr< dtQueryFilter > queryFilter_
Detour navigation mesh query filter.
Definition: NavigationMesh.h:308
static unsigned Calculate(const char *str, unsigned hash=0)
Calculate hash value from a C string.
Definition: StringHash.cpp:71
void SetValue(const T &value)
Set value.
Definition: Variant.h:235
unsigned controlledIdAttr_
Controlled ID for the SplinePath.
Definition: SplinePath.h:144
void RemoveAllComponents()
Remove all components from this node.
Definition: Node.cpp:1078
SoundSource3D(Context *context)
Construct.
Definition: SoundSource3D.cpp:46
unsigned frameNumber_
Frame number.
Definition: Drawable.h:71
void OnClickBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse click begin.
Definition: Slider.cpp:96
DragAndDropModeFlags GetDragDropMode() const
Return drag and drop flags.
Definition: UIElement.h:541
bool dragBeginPending
Flag for a drag start event pending.
Definition: UI.h:239
bool IsEnabled() const
Return whether is enabled. Disables nodes effectively disable all their components.
Definition: Node.h:368
void SetScene(Scene *scene)
Set scene. Called by Scene.
Definition: Node.cpp:1444
void RemoveSubsystem()
Template version of removing a subsystem.
Definition: Context.h:263
int GetIndentSpacing() const
Return indent spacing (number of pixels per indentation level).
Definition: UIElement.h:625
~Shader() override
Destruct.
Definition: Shader.cpp:72
const Color & GetColorAttr() const
Return color attribute. Uses just the top-left color.
Definition: UIElement.h:640
void SetIncludeFlags(unsigned queryFilterType, unsigned short flags)
Set the include flags for the specified query filter type.
Definition: CrowdManager.cpp:311
const String & GetText() const
Return text.
Definition: LineEdit.h:90
bool GetDrawDebug() const
Return whether should draw debug geometry.
Definition: View.h:154
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Texture2D.cpp:94
void ReloadShaders()
Force reload of shaders.
Definition: Renderer.cpp:526
void GetFace(Vector< PODVector< DecalVertex > > &faces, Drawable *target, unsigned batchIndex, unsigned i0, unsigned i1, unsigned i2, const unsigned char *positionData, const unsigned char *normalData, const unsigned char *skinningData, unsigned positionStride, unsigned normalStride, unsigned skinningStride, const Frustum &frustum, const Vector3 &decalNormal, float normalCutoff)
Get triangle face from the target geometry.
Definition: DecalSet.cpp:810
float DotProduct(const Vector3 &rhs) const
Calculate dot product.
Definition: Vector3.h:351
bool GetEnableMotor() const
Return enable motor.
Definition: ConstraintPrismatic2D.h:76
void GetChildrenWithComponent(PODVector< Node * > &dest, StringHash type, bool recursive=false) const
Return child scene nodes with a specific component.
Definition: Node.cpp:1256
~TileMap2D() override
Destruct.
unsigned obstacleAvoidanceType_
Agent's obstacle avoidance type, it is an index to the obstacle avoidance array configured in Detour ...
Definition: CrowdAgent.h:226
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Skybox.cpp:58
Vector< PODVector< Matrix3x4 * > > geometrySkinMatrixPtrs_
Subgeometry skinning matrix pointers, if more bones than skinning shader can manage.
Definition: AnimatedModel.h:227
Sphere(const Frustum &frustum) noexcept
Construct from a frustum.
Definition: Sphere.h:68
void SetMaxForce(float maxForce)
Set max force.
Definition: ConstraintFriction2D.cpp:68
virtual void OnWheel(int delta, MouseButtonFlags buttons, QualifierFlags qualifiers)
React to mouse wheel.
Definition: UIElement.h:185
const ResourceRefList & GetResourceRefList() const
Return a resource reference list or empty on type mismatch.
Definition: Variant.h:1226
Vector< SharedPtr< Node > > children_
Child scene nodes.
Definition: Node.h:699
Texture2DArray(Context *context)
Construct.
Definition: Texture2DArray.cpp:46
float GetMaxMotorForce() const
Return maxmotor force.
Definition: ConstraintPrismatic2D.h:79
const String & GetDefinesClipPlane()
Return defines with the CLIPPLANE define appended. Used internally on Direct3D11 only,...
Definition: ShaderVariation.h:138
HashMap< WeakPtr< UIElement >, DragData * > dragElements_
Currently dragged elements.
Definition: UI.h:427
void SetUpdateEventMask(UpdateEventFlags mask)
Set what update events should be subscribed to. Use this for optimization: by default all are in use....
Definition: LogicComponent.cpp:67
String queryString_
XPath query string.
Definition: XMLElement.h:400
~CrowdAgent() override
Destruct.
Definition: CrowdAgent.cpp:100
static const Vector3 ONE
(1,1,1) vector.
Definition: Vector3.h:495
unsigned GetID() const
Return ID.
Definition: Component.h:82
unsigned localComponentID_
Next free local component ID.
Definition: Scene.h:320
float GetWheelDampingCompression(int wheel) const
Get wheel damping compression.
Definition: RaycastVehicle.cpp:501
int location_
OpenGL uniform location.
Definition: ShaderVariation.h:59
int fontOversampling_
Horizontal oversampling for subpixel fonts (default is 2).
Definition: UI.h:411
unsigned GetShadowMask(Drawable *drawable)
Return the drawable's shadow mask, considering also its zone.
Definition: View.h:297
WeakPtr< AnimatedModel > model_
Animated model (model mode).
Definition: AnimationState.h:159
void PopFront()
Erase the first element.
Definition: List.h:323
ParticleEffect * GetEffect() const
Return particle effect.
Definition: ParticleEmitter.cpp:353
VariantVector GetParticlesAttr() const
Return particles attribute. Returns particle amount only if particles are not to be serialized.
Definition: ParticleEmitter.cpp:387
void SetSize(const BoundingBox &box, unsigned numLevels)
Set size and maximum subdivision levels. If octree is not empty, drawable objects will be temporarily...
Definition: Octree.cpp:351
unsigned GetChecksum() const
Return source file checksum.
Definition: Scene.h:193
bool Equals(const Quaternion &rhs) const
Test for equality with another quaternion with epsilon.
Definition: Quaternion.h:413
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RaycastVehicle.cpp:195
bool IsQuiet() const
Return whether log is in quiet mode (only errors printed to standard error stream).
Definition: Log.h:104
bool operator==(const HashMap< T, U > &rhs) const
Test for equality with another hash map.
Definition: HashMap.h:295
unsigned GetNumColumns() const
Return number of columns in the resultset or 0 if there is no resultset.
Definition: ODBCResult.h:45
void SetModalFrameSize(const IntVector2 &size)
Set modal frame size.
Definition: Window.cpp:310
void SetDisableCollision(bool disable)
Set whether to disable collisions between connected bodies.
Definition: Constraint.cpp:326
IntVector2 Min() const
Return left-top corner position.
Definition: Rect.h:443
StringHash eventID_
Event ID.
Definition: EventProfiler.h:58
StringHash typeHash_
Type of stored component.
Definition: UnknownComponent.h:91
const Vector< SharedPtr< UIElement > > & GetChildren() const
Return immediate child elements.
Definition: UIElement.h:570
const Vector< AttributeInfo > * GetAttributes(StringHash type) const
Return attribute descriptions for an object type, or null if none defined.
Definition: Context.h:170
HashSet< String > usedCombinations_
Already encountered shader combinations.
Definition: ShaderPrecache.h:60
bool headless_
Headless mode flag.
Definition: Engine.h:156
bool IsEmitting() const
Return whether is currently emitting.
Definition: ParticleEmitter2D.h:122
void ClearSelection()
Clear selection.
Definition: ListView.cpp:696
unsigned name_
Object name (OpenGL).
Definition: GPUObject.h:38
Lock that automatically acquires and releases a mutex.
Definition: Mutex.h:56
float derivedOpacity_
Derived opacity.
Definition: UIElement.h:799
bool Open(const String &fileName, unsigned startOffset=0)
Open the package file. Return true if successful.
Definition: PackageFile.cpp:53
SharedPtr< Texture > rampTexture_
Range attenuation texture.
Definition: Light.h:365
NavigationPathPointFlag flag_
Detour flag.
Definition: NavigationMesh.h:86
BoundingBox GetWorldBoundingBox() const
Return world-space bounding box.
Definition: CollisionShape.cpp:824
Controls sent over the network.
Definition: Controls.h:31
void SetDepthBias(const BiasParameters ¶meters)
Set depth bias parameters for depth write and compare. Note that the normal offset parameter is not u...
Definition: Material.cpp:1089
bool hdrRendering_
HDR rendering flag.
Definition: Renderer.h:586
bool IsNull() const
Return whether does not refer to an element or an XPath node.
Definition: XMLElement.cpp:563
float tangentialAcceleration_
Tangential acceleration.
Definition: ParticleEffect2D.h:280
bool useTextureUnits_[MAX_TEXTURE_UNITS]
Texture unit use.
Definition: OGLShaderProgram.h:97
HashMap< unsigned, Vector< SharedPtr< TileMapObject2D > > > gidToCollisionShapeMapping_
Gid to tile collision shape mapping.
Definition: TmxFile2D.h:224
const String & GetProperty(const String &name) const
Return property value.
Definition: TileMapDefs2D.cpp:154
String SanitateResourceDirName(const String &name) const
Remove unnecessary constructs from a resource directory name and ensure it to be an absolute path.
Definition: ResourceCache.cpp:872
unsigned GetChecksum() const
Return checksum of the package file contents.
Definition: PackageFile.h:80
bool IsCubemap() const
Whether this texture is detected as a cubemap, only relevant for DDS.
Definition: Image.h:139
int updateFps_
Update FPS.
Definition: Network.h:164
bool useFogColor_
Use fog color for clearing.
Definition: RenderPath.h:178
Vector< Quaternion > origRotation_
All wheels original rotations. These are applied in addition to wheel rotations by btRaycastVehicle.
Definition: RaycastVehicle.h:196
float timeAcc_
Time accumulator for non-interpolated mode.
Definition: PhysicsWorld.h:344
bool LoadOggVorbis(Deserializer &source)
Load Ogg Vorbis format sound data. Does not decode at load, but will rather be decoded while playing.
Definition: Sound.cpp:103
Skeleton skeleton_
Skeleton.
Definition: Model.h:208
~OffMeshConnection() override
Destruct.
bool WriteResourceRef(const ResourceRef &value)
Write a resource reference.
Definition: Serializer.cpp:217
const TileMapInfo2D & GetInfo() const
Return Tilemap information.
Definition: TmxFile2D.h:184
Vector3 GetWorldRight() const
Return node's right vector in world space.
Definition: Node.h:456
Vector< TrailPoint * > sortedPoints_
Trail pointers for sorting.
Definition: RibbonTrail.h:243
IntRect GetIntRect(const String &name) const
Return an IntRect attribute, or default if missing.
Definition: XMLElement.cpp:822
dtNavMesh * navMesh_
Detour navigation mesh.
Definition: NavigationMesh.h:304
float farDistance_
Far distance.
Definition: SoundSource3D.h:84
int GetGroupIndex() const
Return filter group index.
Definition: CollisionShape2D.h:80
Vector3 max_
Maximum vector.
Definition: BoundingBox.h:324
bool enabled_
Enabled flag.
Definition: RenderPath.h:88
CollisionShape(Context *context)
Construct.
Definition: CollisionShape.cpp:456
float timer_
Decal age timer.
Definition: DecalSet.h:91
~Octree() override
Destruct.
Definition: Octree.cpp:322
Vector< T > operator+(const T &rhs) const
Add an element.
Definition: Vector.h:144
InterpMethod
Interpolation method.
Definition: ValueAnimation.h:37
Vector3 GetRandomPointInCircle(const Vector3 ¢er, float radius, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh within a circle. The circle radius is only a guideline a...
Definition: NavigationMesh.cpp:753
Polyhedron(const Frustum &frustum)
Construct from a frustum.
Definition: Polyhedron.h:64
void BeginSendEvent()
Begin event send. When receivers are removed during send, group has to be cleaned up afterward.
Definition: Context.cpp:57
PODVector< int > hats_
POV hat bits.
Definition: Input.h:125
Delay-executed function or method call.
Definition: ScriptEventListener.h:37
bool operator!() const
Boolean negation.
Definition: FlagSet.h:160
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionCircle2D.cpp:48
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle the application post-update.
Definition: Console.cpp:549
void SetDynamic(bool enable)
Set vertex buffer dynamic mode. A dynamic buffer should be faster to update frequently....
Definition: CustomGeometry.cpp:517
FlagSet operator~() const
Bitwise negation.
Definition: FlagSet.h:154
int GetMaxSortedInstances() const
Return maximum number of sorted instances per batch group.
Definition: Renderer.h:319
bool cameraZoneOverride_
Camera zone's override flag.
Definition: View.h:370
void UpdateBatch()
Update the batch (geometry type, shader data).
Definition: DecalSet.cpp:1089
void SetGlobalShaderParameters()
Set global (per-frame) shader parameters. Called by Batch and internally by View.
Definition: View.cpp:689
StringHashRegister(bool threadSafe)
Construct. threadSafe controls whether the RegisterString and GetStringCopy are thread-safe.
Definition: StringHashRegister.cpp:36
static void RegisterObject(Context *context)
Register object factory.
Definition: Sprite.cpp:53
void SetSorted(bool enable)
Set whether billboards are sorted by distance. Default false.
Definition: BillboardSet.cpp:302
bool Save(Serializer &dest) const override
Save as binary data. Return true if successful.
Definition: Component.cpp:65
int AddAgent(CrowdAgent *agent, const Vector3 &pos)
Create and adds an detour crowd agent, Agent's radius and height is set through the navigation mesh....
Definition: CrowdManager.cpp:615
void SetAlphaToCoverage(bool enable)
Set alpha-to-coverage on/off.
Definition: Technique.cpp:124
Iterator Insert(const Iterator &dest, const PODVector< T > &vector)
Insert a vector by iterator.
Definition: Vector.h:902
UIElement * GetSelectedItem() const
Return first selected item, or null if none selected.
Definition: ListView.cpp:892
bool WriteIntVector3(const IntVector3 &value)
Write an IntVector3.
Definition: Serializer.cpp:101
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Model.cpp:321
VariantType type_
Variant type.
Definition: Variant.h:1400
float GetSoundSourceMasterGain(StringHash typeHash) const
Return sound type specific gain multiplied by master gain.
Definition: Audio.cpp:242
IntRect rectangle_
Rectangle.
Definition: Sprite2D.h:99
void SetSelectionAttr(unsigned index)
Set selection attribute.
Definition: DropDownList.cpp:228
void SetSizeMul(float sizeMul)
Set particle size multiplicative modifier.
Definition: ParticleEffect.cpp:586
bool Contains(char c, bool caseSensitive=true) const
Return whether contains a specific character.
Definition: Str.h:444
bool enabled_
Input enabled flag.
Definition: UIElement.h:702
void Swap(VectorBase &rhs)
Swap with another vector.
Definition: VectorBase.h:53
Color startColorVariance_
Start color variance.
Definition: ParticleEffect2D.h:288
String(wchar_t *str)
Construct from a null-terminated wide character array.
Definition: Str.h:116
float GetRadius() const
Get the blocking radius of this obstacle.
Definition: Obstacle.h:59
void PushUserType(const T &userType)
Push user type to stack.
Definition: LuaFunction.h:74
void Insert(unsigned pos, const JSONValue &value)
Insert an JSON value at position.
Definition: JSONValue.cpp:218
Weak array pointer template class. Uses non-intrusive reference counting.
Definition: ArrayPtr.h:231
SoundStream()
Construct.
Definition: SoundStream.cpp:30
void ResumeAll()
Resume playback of all sound types.
Definition: Audio.cpp:185
virtual void OnTextInput(const String &text)
React to text input event.
Definition: UIElement.h:189
void Define(const BoundingBox &box)
Define from a bounding box.
Definition: Polyhedron.cpp:37
Variant(const Vector2 &value)
Construct from a Vector2.
Definition: Variant.h:379
void ResizeRootElement()
Resize root element to effective size.
Definition: UI.cpp:2164
~UniquePtr()
Destruct.
Definition: Ptr.h:662
const char * GetAttributeCString(const char *name) const
Return attribute as C string, or null if missing.
Definition: XMLElement.cpp:703
int GetMaxSubSteps() const
Return maximum number of physics substeps per frame.
Definition: PhysicsWorld.h:218
void OnSceneSet(Scene *scene) override
Subscribe to drawable update finished event here.
Definition: IKSolver.cpp:519
float nearClip_
Near clip distance.
Definition: OcclusionBuffer.h:211
~FontFace() override
Destruct.
Definition: FontFace.cpp:42
const Quaternion & GetOtherRotation() const
Return constraint rotation relative to other body.
Definition: Constraint.h:125
void SetGeometryBoneMappings(const Vector< PODVector< unsigned > > &geometryBoneMappings)
Set bone mappings when model has more bones than the skinning shader can handle.
Definition: Model.cpp:607
const IntRect & GetResizeBorder() const
Return resize area width at edges.
Definition: Window.h:113
void ApplyTorque(const Vector3 &torque)
Apply torque.
Definition: RigidBody.cpp:534
Vector3 LocalToWorld(const Vector3 &position) const
Convert a local space position to world space.
Definition: Node.cpp:1190
static unsigned alphaPassIndex
Index for alpha pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:262
SharedPtr< Image > GetDecompressedImage() const
Return decompressed image data in RGBA format.
Definition: Image.cpp:2101
SharedPtr< Geometry > dirLightGeometry_
Directional light quad geometry.
Definition: Renderer.h:482
void SetLayoutMode(LayoutMode mode)
Set layout mode only.
Definition: UIElement.cpp:1053
bool HasProperty(const String &name) const
Return has property.
Definition: TileMapLayer2D.cpp:254
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: CustomGeometry.cpp:80
void SetGeometryBoneMappings()
Set mapping of subgeometry bone indices.
Definition: AnimatedModel.cpp:1223
void RemoveCommands(const String &tag)
Remove commands by tag name.
Definition: RenderPath.cpp:489
void PushUserType(void *userType, const char *typeName)
Push user type to stack.
Definition: LuaFunction.cpp:137
unsigned GetMemoryUse() const
Return memory use in bytes, possibly approximate.
Definition: Resource.h:92
void SetShaderParameter(StringHash param, const float *data, unsigned count)
Set shader float constants.
Definition: OGLGraphics.cpp:1151
static const unsigned MIN_BUCKETS
Initial amount of buckets.
Definition: HashBase.h:104
void SetWheelDataAttr(const VariantVector &value)
Set wheel data attribute during loading.
Definition: RaycastVehicle.cpp:759
PODVector< unsigned > numAreas_
Number of configured area in each filter type. Limit to DT_MAX_AREAS.
Definition: CrowdManager.h:195
ListView * fileList_
File list.
Definition: FileSelector.h:155
Node * InsertNode(const T &key, const U &value, bool findExisting=true)
Insert a key and value and return either the new or existing node.
Definition: HashMap.h:659
virtual bool Save(Serializer &dest) const
Save as binary data. Return true if successful.
Definition: Serializable.cpp:318
unsigned numWorldTransforms_
Number of world transforms.
Definition: Drawable.h:102
bool castShadows_
Shadowcaster flag.
Definition: Terrain.h:295
static ThreadID mainThreadID
Main thread's thread ID.
Definition: Thread.h:77
const Vector3 & GetTargetPosition() const
Returns the current target position in world space.
Definition: IKEffector.cpp:112
bool isServer_
Whether we started as server or not.
Definition: Network.h:176
bool useSystemClipboard_
Flag for using operating system clipboard instead of internal.
Definition: UI.h:399
Rect(float left, float top, float right, float bottom) noexcept
Construct from coordinates.
Definition: Rect.h:49
float GetTangentialAccelVariance() const
Return tangential acceleration variance.
Definition: ParticleEffect2D.h:173
unsigned minFps_
Minimum frames per second.
Definition: Engine.h:138
String type_
Type.
Definition: TileMapDefs2D.h:214
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintRevolute2D.cpp:161
long long GetInt64() const
Return 64 bit int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1100
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:106
void RemoveResourceRouter(ResourceRouter *router)
Remove a resource router object.
Definition: ResourceCache.cpp:476
void AddConstraint(Constraint *constraint)
Add a constraint that refers to this rigid body.
Definition: RigidBody.cpp:863
HashMap< unsigned, ComponentReplicationState > componentStates_
Components by ID.
Definition: ReplicationState.h:167
void SetOutput(unsigned index, const String &name, CubeMapFace face=FACE_POSITIVE_X)
Set output rendertarget name and face index for cube maps.
Definition: RenderPath.cpp:258
void MakeCircle(float radius=1, size_t iterations=300, float startTheta=0, float endTheta=2 *M_PI, bool clear=true, int geomNum=0)
Definition: CustomGeometry.cpp:242
ConstIterator(const Iterator &rhs)
Construct from a non-const iterator.
Definition: List.h:119
Scrollable list UI element.
Definition: ListView.h:45
EventProfilerBlock(EventProfilerBlock *parent, StringHash eventID)
Construct with the specified parent block and event ID.
Definition: EventProfiler.h:35
const T * operator->() const
Point to the node value.
Definition: List.h:162
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionCircle2D.cpp:85
LineEdit * fileNameEdit_
Filename editor.
Definition: FileSelector.h:159
RenderSurfaceUpdateMode
Update mode for render surface viewports.
Definition: GraphicsDefs.h:292
ListIteratorBase(ListNodeBase *ptr)
Construct with a node pointer.
Definition: ListBase.h:63
void RefreshFiles()
Refresh the directory listing.
Definition: FileSelector.cpp:287
SharedPtr< RenderSurface > renderSurface_
Render surface.
Definition: Texture2DArray.h:88
float GetShaderParameterAnimationSpeed(const String &name) const
Return shader parameter animation speed.
Definition: Material.cpp:1221
Variant GetAnimationValue(float scaledTime) const
Return animation value.
Definition: ValueAnimation.cpp:341
Variant GetKnot(unsigned index) const
Return the knot at the specific index.
Definition: Spline.h:83
void SetPosition(float factor)
Set the controlled Node's position on the SplinePath.
Definition: SplinePath.cpp:205
float lightRad_
Radius of the light source. If above 0 it will turn the light into an area light. Works only with PBR...
Definition: Light.h:353
const Color & GetFogColor() const
Return fog color.
Definition: Zone.h:85
ResourceRef GetSpriteAttr() const
Return sprite attribute.
Definition: ParticleEmitter2D.cpp:179
bool IsFixedSize() const
Return true if size is fixed.
Definition: UIElement.h:439
Terrain(Context *context)
Construct.
Definition: Terrain.cpp:80
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Shader.cpp:112
bool GetModalAutoDismiss() const
Return whether can be dismissed with escape key.
Definition: Window.h:128
float timeToLive_
Lifetime.
Definition: ParticleEmitter.h:42
IntVector2 rtSize_
Destination rendertarget size.
Definition: View.h:350
void DefineGeometry(unsigned index, PrimitiveType type, unsigned numVertices, bool hasNormals, bool hasColors, bool hasTexCoords, bool hasTangents)
Set the primitive type, number of vertices and elements in a geometry, after which the vertices can b...
Definition: CustomGeometry.cpp:586
VariantVector GetShapesAttr() const
Return shapes attribute.
Definition: Cursor.cpp:235
SoundListener * GetListener() const
Return active sound listener.
Definition: Audio.cpp:221
JSONValue root_
JSON root value.
Definition: JSONFile.h:63
void SetSize(unsigned dataSize)
Set sound size in bytes. Also resets the sound to be uncompressed and one-shot.
Definition: Sound.cpp:223
Iterator Erase(const Iterator &it)
Erase an element by iterator. Return iterator to the next element.
Definition: Vector.h:372
const Vector< AnimationControl > & GetAnimations() const
Return the animation control structures for inspection.
Definition: AnimationController.h:176
UniquePtr< btCompoundShape > shiftedCompoundShape_
Compound collision shape with center of mass offset applied.
Definition: RigidBody.h:273
@ USE_FIXEDUPDATE
Bitmask for using the physics update event.
Definition: LogicComponent.h:42
~XPathResultSet()
Destruct.
Definition: XMLElement.cpp:1023
bool HasChild(const String &name) const
Return whether has a child element.
Definition: XMLElement.cpp:591
Color Abs() const
Return color with absolute components.
Definition: Color.h:238
IntRect(const IntVector2 &min, const IntVector2 &max) noexcept
Construct from minimum and maximum vectors.
Definition: Rect.h:285
unsigned GetLightMask(Drawable *drawable)
Return the drawable's light mask, considering also its zone.
Definition: View.h:291
unsigned GetTailColumn() const
Return number of column for tails.
Definition: RibbonTrail.h:164
unsigned vertexSize_
Vertex size in bytes.
Definition: OcclusionBuffer.h:72
void EraseSwap(unsigned pos, unsigned length=1)
Erase a range of elements by swapping elements from the end of the array.
Definition: Vector.h:348
bool IsZero() const override
Compare to zero.
Definition: Variant.h:265
~String()
Destruct.
Definition: Str.h:164
~PListValue()
Destruct.
Definition: PListFile.cpp:89
void * Lock(unsigned start, unsigned count, bool discard=false)
Lock the buffer for write-only editing. Return data pointer if successful. Optionally discard data ou...
Definition: OGLVertexBuffer.cpp:165
void SetMaxVertices(unsigned num)
Set maximum number of decal vertices.
Definition: DecalSet.cpp:254
PODVector< Drawable * > litGeometries_
Lit geometries.
Definition: View.h:60
StencilOp GetStencilFail() const
Return stencil operation to do if stencil test fails.
Definition: Graphics.h:546
void RemoveRigidBody(RigidBody2D *rigidBody)
Remove rigid body.
Definition: PhysicsWorld2D.cpp:442
unsigned checksum_
Content checksum.
Definition: File.h:141
void ResetPtrs()
Reset bucket head pointers.
Definition: HashBase.cpp:43
Quaternion GetQuaternion(const String &name) const
Return a quaternion attribute, or default if missing.
Definition: XMLElement.cpp:837
LoadMode GetAsyncLoadMode() const
Return the load mode of the current asynchronous loading operation.
Definition: Scene.h:187
BillboardSet(Context *context)
Construct.
Definition: BillboardSet.cpp:77
bool IsEnabledEffective() const
Return whether is effectively enabled (node is also enabled).
Definition: Component.cpp:270
bool dxtTextureSupport_
DXT format support flag.
Definition: Graphics.h:745
Text3D(Context *context)
Construct.
Definition: Text3D.cpp:51
void SetLightMask(unsigned mask)
Set light mask. Is and'ed with light's and zone's light mask to see if the object should be lit.
Definition: Drawable.cpp:197
Variant(const ResourceRef &value)
Construct from a resource reference.
Definition: Variant.h:439
void * decoder_
Decoder state.
Definition: OggVorbisSoundStream.h:50
void HandleScriptFileReloadFinished(StringHash eventType, VariantMap &eventData)
Handle script file reload finished.
Definition: ScriptInstance.cpp:955
void Play(Sound *sound)
Play a sound.
Definition: SoundSource.cpp:171
HashMap< Pair< WeakPtr< RigidBody >, WeakPtr< RigidBody > >, ManifoldPair > previousCollisions_
Collision pairs on the previous frame. Used to check if a collision is "new." Manifolds are not guara...
Definition: PhysicsWorld.h:324
bool IsType() const
Return whether the specified type is stored.
Definition: Variant.h:186
VariantValue value_
Variant value.
Definition: Variant.h:1402
TileMapObjectType2D
Tile map object type.
Definition: TileMapDefs2D.h:88
float lodDistance_
LOD distance.
Definition: Material.h:72
static const Vector2 ZERO
Zero vector.
Definition: Vector2.h:379
void SetFontSubpixelThreshold(float threshold)
Set the font subpixel threshold. Below this size, if the hint level is LIGHT or NONE,...
Definition: UI.cpp:718
Vector3 GetRandomPoint(const dtQueryFilter *filter=nullptr, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh.
Definition: NavigationMesh.cpp:740
ResourceRef(const String &type, const String &name)
Construct with type and resource name.
Definition: Variant.h:108
unsigned char * data_
Compressed image data.
Definition: Image.h:61
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Material.cpp:246
IntVector2 GetEffectiveMinSize() const
Return effective minimum size, also considering layout. Used internally.
Definition: UIElement.cpp:1870
void SetFixedWidth(int width)
Set fixed width.
Definition: UIElement.cpp:658
VerticalAlignment
UI element vertical alignment.
Definition: UIElement.h:46
Variant & operator=(const Variant &rhs)
Assign from another variant.
Definition: Variant.cpp:77
long long time_
Time on current frame.
Definition: Profiler.h:142
Node * GetCameraNode() const
Return camera scene node.
Definition: View3D.cpp:136
unsigned char GetLayer() const
Return blending layer.
Definition: AnimationState.h:145
void BeginInterval()
Begin new profiling interval.
Definition: Profiler.h:112
void HandleBeginViewUpdate(StringHash eventType, VariantMap &eventData)
Handle view update begin event. Determine Drawable2D's and their batches here.
Definition: Renderer2D.cpp:320
void Rotate(const Quaternion &delta, TransformSpace space=TS_LOCAL)
Rotate the scene node in the chosen transform space.
Definition: Node.cpp:587
void SetBox(const Vector3 &size, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a box.
Definition: CollisionShape.cpp:570
int GetLevelWidth(unsigned level) const
Return mip level width, or 0 if level does not exist.
Definition: Texture.cpp:129
void AddRef()
Increment reference count. Can also be called outside of a SharedPtr for traditional reference counti...
Definition: RefCounted.cpp:54
PODVector< PrimitiveType > primitiveTypes_
Primitive type per geometry.
Definition: CustomGeometry.h:164
Quaternion Conjugate() const
Return conjugate.
Definition: Quaternion.h:425
void SetTrailType(TrailType type)
Set how the trail behave.
Definition: RibbonTrail.cpp:842
Console(Context *context)
Construct.
Definition: Console.cpp:62
unsigned lightPassIndex_
Index of the forward light pass.
Definition: View.h:427
unsigned long long GetVertexLightQueueHash(const PODVector< Light * > &vertexLights)
Return hash code for a vertex light queue.
Definition: View.h:303
bool ReadInternal(void *dest, unsigned size)
Perform the file read internally using either C standard IO functions or SDL RWops for Android asset ...
Definition: File.cpp:526
Vector< OcclusionBufferData > buffers_
Highest-level buffer data per thread.
Definition: OcclusionBuffer.h:183
bool WriteVariant(const Variant &value)
Write a variant.
Definition: Serializer.cpp:237
void SetPacketSizeLimit(int limit)
Buffered packet size limit, when reached, packet is sent out immediately.
Definition: Connection.cpp:1182
String ToString() const
Return as string.
Definition: StringHash.cpp:93
void Reset(T *ptr=nullptr)
Reset with another pointer.
Definition: Ptr.h:449
bool HasSubscribedToEvent(StringHash eventType) const
Return whether has subscribed to an event without specific sender.
Definition: Object.cpp:436
static void RegisterObject(Context *context)
Register Obstacle with engine context.
Definition: Obstacle.cpp:54
TileMap2D * GetTileMap() const
Return tile map.
Definition: TileMapLayer2D.cpp:249
virtual Animatable * FindAttributeAnimationTarget(const String &name, String &outName)
Find target of an attribute animation from object hierarchy by name.
Definition: Animatable.cpp:466
bool SetValue(const String &value)
Set the value for an inner node in the following format <node>value</node>.
Definition: XMLElement.cpp:265
void SetAttenuation(float attenuation)
Set attenuation. 1.0 is unaltered. Used for distance attenuated playback.
Definition: SoundSource.cpp:296
static void RegisterObject(Context *context)
Register object factory.
Definition: Window.cpp:62
AreaAllocator allocator_
Glyph area allocator.
Definition: FontFaceFreeType.h:73
SharedPtr< Cursor > cursor_
Cursor.
Definition: UI.h:357
void Define(const Vector3 &origin, const Vector3 &direction)
Define from origin and direction. The direction will be normalized.
Definition: Ray.h:62
const T & At(unsigned index) const
Return const element at index.
Definition: Vector.h:833
SceneResolver()
Construct.
float GetDrawDistance() const
Return draw distance.
Definition: Terrain.h:160
float scale_
Size scaling value.
Definition: ParticleEmitter.h:44
Vector3 GetLinearFactor() const
Return linear degrees of freedom.
Definition: RigidBody.cpp:623
SharedPtr< Image > GetImage(CubeMapFace face) const
Get image data from a face's zero mip level. Only RGB and RGBA textures are supported.
Definition: TextureCube.cpp:316
void Erase(unsigned pos, unsigned length=1)
Erase a range of elements.
Definition: Vector.h:944
void SendBuffer(PacketType type)
Send out buffered messages by their type.
Definition: Connection.cpp:378
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintDistance2D.cpp:127
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ObjectAnimation.cpp:67
void SetEffectColor(const Color &effectColor)
Set effect color.
Definition: Text.cpp:404
VariantMap eventData_
Event data.
Definition: Connection.h:62
void SortTechniques()
Ensure that material techniques are listed in correct order.
Definition: Material.cpp:1171
float emissionRateMax_
Particles per second maximum.
Definition: ParticleEffect.h:393
const String & GetAnimationName() const
Return animation name.
Definition: Animation.h:160
bool looped_
Looped flag.
Definition: Sound.h:126
const Vector< SourceBatch2D > & GetSourceBatches()
Return all source batches (called by Renderer2D).
Definition: Drawable2D.cpp:99
void RemoveAgent(CrowdAgent *agent)
Removes the detour crowd agent.
Definition: CrowdManager.cpp:630
void Swap(SharedPtr< T > &rhs)
Swap with another SharedPtr.
Definition: Ptr.h:164
SharedArrayPtr< unsigned char > rawIndexData_
Raw index data override.
Definition: Geometry.h:137
float GetTolerance() const
Returns the configured tolerance.
Definition: IKSolver.cpp:205
Watches a directory and its subdirectories for files being modified.
Definition: FileWatcher.h:37
String pixelShaderDefines_
Pixel shader defines.
Definition: Technique.h:172
SharedPtr< T > CreateObject()
Create an object by type. Return pointer to it or null if no factory found.
Definition: Context.h:77
SourceBatch2D()
Construct.
Definition: Drawable2D.cpp:40
void Clear()
Clear the UI (excluding the cursor).
Definition: UI.cpp:309
void SetBlendMode(BlendMode mode, bool alphaToCoverage=false)
Set blending and alpha-to-coverage modes. Alpha-to-coverage is not supported on Direct3D9.
Definition: OGLGraphics.cpp:1746
Node * InsertNode(Node *dest, const T &key)
Insert a node into the list. Return the new node.
Definition: HashSet.h:556
ConstIterator & operator--()
Predecrement the pointer.
Definition: HashSet.h:153
bool useGravity_
Use gravity flag.
Definition: RigidBody.h:303
bool Allocate(int width, int height, int &x, int &y)
Try to allocate an area. Return true if successful, with x & y coordinates filled.
Definition: AreaAllocator.cpp:59
void Load(const XMLElement &element)
Read from an XML element.
Definition: RenderPath.cpp:64
TileMapLayerType2D
Tile map layer type.
Definition: TileMapDefs2D.h:75
IntRect GetShadowMapViewport(Light *light, int splitIndex, Texture2D *shadowMap)
Return the viewport for a shadow map split.
Definition: View.cpp:2491
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: StaticModelGroup.cpp:68
Texture * GetZoneTexture() const
Return zone texture.
Definition: Zone.h:112
unsigned GetStencilRef() const
Return stencil reference value.
Definition: Graphics.h:552
2D box collision component.
Definition: CollisionBox2D.h:31
Matrix3 ToMatrix3() const
Return the combined rotation and scaling matrix.
Definition: Matrix3x4.h:542
void SetPackageCacheDir(const String &path)
Set the package download cache directory.
Definition: Network.cpp:613
Iterator Erase(const Iterator &start, const Iterator &end)
Erase a range by iterators. Return iterator to the next element.
Definition: Vector.h:383
void SetLifetime(float time)
Set tail time to live.
Definition: RibbonTrail.cpp:812
Node * Prev() const
Return previous node.
Definition: HashMap.h:100
bool GetOverride() const
Return whether override mode is enabled.
Definition: Zone.h:106
WeakPtr< View > sourceView_
Shared source view. Null if this view is using its own culling.
Definition: View.h:324
unsigned IndexOf(const T &value) const
Return index of value in vector, or size if not found.
Definition: Vector.h:1110
unsigned replicatedComponentID_
Next free non-local component ID.
Definition: Scene.h:316
Vector4 ToVector4() const
Return as a vector.
Definition: Rect.h:235
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: Audio.cpp:309
void SetSize(const Vector2 &size)
Set size.
Definition: CollisionBox2D.cpp:62
2D chain collision component.
Definition: CollisionChain2D.h:30
void MarkDirty()
Mark screen position as needing an update.
Definition: UIElement.cpp:1935
PODVector< Batch > batches_
Unsorted non-instanced draw calls.
Definition: Batch.h:257
float weight_
Current morph weight.
Definition: Model.h:61
const String & GetName() const
Return name.
Definition: TileMapDefs2D.h:174
~ConstraintFriction2D() override
Destruct.
unsigned numVertices_
Vertices in the current decals.
Definition: DecalSet.h:231
bool Load(Deserializer &source) override
Load from binary data. Return true if successful.
Definition: UnknownComponent.cpp:95
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix2.h:218
unsigned GetNumInstanceNodes() const
Return number of instance nodes.
Definition: StaticModelGroup.h:62
void Add(Object *object)
Add receiver. Same receiver must not be double-added!
Definition: Context.cpp:80
bool SetQuaternion(const String &name, const Quaternion &value)
Set a quaternion attribute.
Definition: XMLElement.cpp:402
~IKEffector() override
Destructs he IK effector.
Definition: IKEffector.cpp:56
Plane reflectionPlane_
Reflection plane.
Definition: Camera.h:270
Vector< SharedPtr< UIElement > > children_
Child elements.
Definition: UIElement.h:680
bool IsReplicated() const
Return whether the node is replicated or local to a scene.
Definition: Node.cpp:1373
bool HasArrived() const
Return true when the agent has arrived at its target.
Definition: CrowdAgent.cpp:503
virtual void OnResize(const IntVector2 &newSize, const IntVector2 &delta)
React to resize.
Definition: UIElement.h:192
WeakPtr< PhysicsWorld > physicsWorld_
Physics world.
Definition: RigidBody.h:275
~SharedPtr() noexcept
Destruct. Release the object reference.
Definition: Ptr.h:80
Iterator Begin()
Return iterator to the beginning.
Definition: Vector.h:1119
const Vector2 & GetHotSpot() const
Return hot spot.
Definition: StaticSprite2D.h:113
bool SetData(unsigned level, int x, int y, int z, int width, int height, int depth, const void *data)
Set data either partially or fully on a mip level. Return true if successful.
Definition: OGLTexture3D.cpp:87
String name_
Bone or scene node name.
Definition: Animation.h:92
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintWeld2D.cpp:97
void GetComponentsRecursive(PODVector< Component * > &dest, StringHash type) const
Return specific components recursively.
Definition: Node.cpp:2158
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Handle the scene subsystem update event.
Definition: CrowdManager.cpp:695
float animationLodTimer_
Animation LOD timer.
Definition: AnimatedModel.h:239
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: Renderer.cpp:1954
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Constraint.cpp:425
void SetLineEditText(LineEdit *edit, const String &text)
Set the text of an edit field and ignore the resulting event.
Definition: FileSelector.cpp:280
static const ChannelMask ARGB
Mask for 0xAARRGGBB layout.
Definition: Color.h:51
void RemoveAllChildren()
Remove all child elements.
Definition: UIElement.cpp:1395
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Camera.cpp:109
float cfm_
Constraint force mixing parameter.
Definition: Constraint.h:197
void SetAnimationSetAttr(const ResourceRef &value)
Set animation set attribute.
Definition: AnimatedSprite2D.cpp:201
void Set(Serializable *ptr, const Variant &value) override
Invoke setter function.
Definition: Serializable.h:168
Resource * GetExistingResource(StringHash type, const String &name)
Return an already loaded resource of specific type & name, or null if not found. Will not load if doe...
Definition: ResourceCache.cpp:542
bool writeSyncNeeded_
Synchronization needed before write -flag.
Definition: File.h:147
std::atomic< bool > pausing_
Pausing flag. Indicates the worker threads should not contend for the queue mutex.
Definition: WorkQueue.h:142
unsigned GetFilterIndex() const
Return current filter index.
Definition: FileSelector.cpp:275
void SetOrientations(const String &orientations)
Set allowed screen orientations as a space-separated list of "LandscapeLeft", "LandscapeRight",...
Definition: Graphics.cpp:100
void AddFrustum(const Frustum &frustum, const Color &color, bool depthTest=true)
Add a frustum.
Definition: DebugRenderer.cpp:226
VariantVector GetWheelDataAttr() const
Get wheel data attribute for serialization.
Definition: RaycastVehicle.cpp:720
VariantVector controlPointIdsAttr_
Control Point ID's for the SplinePath.
Definition: SplinePath.h:142
void AddBatchToQueue(BatchQueue &queue, Batch &batch, Technique *tech, bool allowInstancing=true, bool allowShadows=true)
Choose shaders for a batch and add it to queue.
Definition: View.cpp:2897
Node(Context *context)
Construct.
Definition: Node.cpp:48
void SetMaxHeight(int height)
Set maximum height.
Definition: UIElement.cpp:642
~LuaFunction() override
Destruct.
Definition: LuaFunction.cpp:57
virtual unsigned Seek(unsigned position)=0
Set position from the beginning of the stream. Return actual new position.
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: Drawable2D.cpp:60
bool IsEof() const override
Return whether pipe has no data available.
Definition: NamedPipe.cpp:349
Variant(long long value)
Construct from 64 bit integer.
Definition: Variant.h:337
SharedPtr< ParticleEffect > effect_
Particle effect.
Definition: ParticleEmitter.h:134
bool IsExpanded(unsigned index) const
Return whether an item at index has its children expanded (in hierarchy mode only).
Definition: ListView.cpp:931
void PreStep(float timeStep)
Trigger update before each physics simulation step.
Definition: PhysicsWorld.cpp:800
void SetMass(float mass)
Set mass. Zero mass makes the body static.
Definition: RigidBody.cpp:214
float shadowNearFarRatio_
Shadow camera near/far clip distance ratio.
Definition: Light.h:389
Skeletal animation resource.
Definition: Animation.h:117
RenderTargetSizeMode
Rendertarget size mode.
Definition: RenderPath.h:60
BlendMode blendMode_
Blend mode flag.
Definition: BorderImage.h:129
ResourceRef GetObjectAnimationAttr() const
Return object animation attribute.
Definition: Animatable.cpp:461
void FindAnimation(const String &name, unsigned &index, AnimationState *&state) const
Find the internal index and animation state of an animation.
Definition: AnimationController.cpp:887
~Viewport() override
Destruct.
Matrix4 projection_
Projection transform.
Definition: DebugRenderer.h:186
String ToString() const
Return as string.
Definition: Matrix4.cpp:136
void HandleAttributeAnimationAdded(StringHash eventType, VariantMap &eventData)
Handle attribute animation added.
Definition: Animatable.cpp:547
Node * ReserveNode(const T &key, const U &value)
Reserve a node with specified key and value.
Definition: HashMap.h:750
List< SharedPtr< WorkItem > > workItems_
Work item collection. Accessed only by the main thread.
Definition: WorkQueue.h:134
bool sorted_
Billboards sorted flag.
Definition: BillboardSet.h:166
const String & GetScriptObjectType() const
Return script object type.
Definition: LuaScriptInstance.h:125
URHO_CPP14(constexpr) RandomAccessIterator< T > operator--(int)
Postdecrement the pointer.
Definition: Iter.h:74
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector2.h:150
bool autoLocalizable_
The text will be automatically translated.
Definition: Text.h:265
Vector3 WorldToLocal(const Vector3 &position) const
Convert a world space position to local space.
Definition: Node.cpp:1206
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: TerrainPatch.cpp:73
~Cursor() override
Destruct.
Definition: Cursor.cpp:90
3x3 matrix for rotation and scaling.
Definition: Matrix3.h:31
void SetShapesAttr(const VariantVector &value)
Set shapes attribute.
Definition: Cursor.cpp:215
int GetFunctionRef() const
Return function ref.
Definition: LuaFunction.h:99
void SetGlobalVar(StringHash key, const Variant &value)
Set global variable with the respective key and value.
Definition: Context.cpp:369
bool useLitBase_
Use lit base pass optimization for forward per-pixel lights.
Definition: RenderPath.h:182
float GetPointSize() const
Return point size.
Definition: FontFace.h:88
SharedPtr< JSONFile > jsonFile_
JSON file for JSON mode.
Definition: Scene.h:64
void ReleaseTileCache()
Free the tile cache.
Definition: DynamicNavigationMesh.cpp:1063
void Clip(const BoundingBox &box)
Clip with another bounding box. The box can become degenerate (undefined) as a result.
Definition: BoundingBox.cpp:94
SharedPtr< PropertySet2D > propertySet_
Property set.
Definition: TileMapDefs2D.h:226
void SendPackageToClients(Scene *scene, PackageFile *package)
Trigger all client connections in the specified scene to download a package file from the server....
Definition: Network.cpp:618
void SetRepeatRate(float rate)
Set paging minimum repeat rate (number of events per second).
Definition: Slider.cpp:204
void SetAngularDamping(float damping)
Set angular velocity damping factor.
Definition: RigidBody.cpp:365
Property set.
Definition: TileMapDefs2D.h:105
IntVector2 size_
Heightmap size.
Definition: CollisionShape.h:135
Node * node_
Scene node.
Definition: OctreeQuery.h:217
ConstIterator & operator=(const Iterator &rhs)
Assign from a non-const iterator.
Definition: List.h:125
AllocatorBlock * next_
Next allocator block.
Definition: Allocator.h:49
PODVector< Node * > dependencyNodes_
Nodes this node depends on for network updates.
Definition: Node.h:61
EmitterType
Particle emitter shapes.
Definition: ParticleEffect.h:34
VariantVector * GetVariantVectorPtr()
Return a pointer to a modifiable variant vector or null on type mismatch.
Definition: Variant.h:1354
unsigned shadowMask_
Shadow mask.
Definition: Terrain.h:305
Sprite2D * GetSpriterFileSprite(int folderId, int fileId) const
Return spriter file sprite.
Definition: AnimationSet2D.cpp:212
bool derivedColorDirty_
Derived color dirty flag (only used when no gradient).
Definition: UIElement.h:805
LightBatchQueue * lightQueue_
Light properties.
Definition: Batch.h:197
void SetFlipX(bool flipX)
Set flip X.
Definition: StaticSprite2D.cpp:142
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post update.
Definition: AnimatedSprite2D.cpp:245
const Vector3 & GetCenterOfMass() const
Return center of mass offset.
Definition: RigidBody.h:208
float GetMaxLength() const
Return max length.
Definition: ConstraintRope2D.h:57
unsigned a_
Alpha channel mask. If zero, alpha channel is set to 1.
Definition: Color.h:46
WeakPtr< Camera > camera_
Camera pointer.
Definition: Viewport.h:103
unsigned GetNumParticles() const
Return maximum number of particles.
Definition: ParticleEmitter.h:94
unsigned GetTimeStamp() const
Return the latest timestamp of the shader code and its includes.
Definition: Shader.h:60
void HandleSceneDrawableUpdateFinished(StringHash eventType, VariantMap &eventData)
Invokes the IK solver.
Definition: IKSolver.cpp:723
constexpr unsigned SDBMHash(unsigned hash, unsigned char c)
Update a hash with the given 8-bit value using the SDBM algorithm.
Definition: MathDefs.h:281
const Vector3 & GetMaxDirection() const
Return positive direction limit.
Definition: ParticleEffect.h:260
void UnregisterRemoteEvent(StringHash eventType)
Unregister a remote event as allowed to received.
Definition: Network.cpp:603
unsigned r_
Red channel mask. If zero, red channel is set to 0.
Definition: Color.h:40
void SetTextureAnisotropy(int level)
Set default texture max anisotropy level.
Definition: Renderer.cpp:321
void BeginFrame()
Begin the profiling frame. Called by HandleBeginFrame().
Definition: Profiler.cpp:49
bool GetLoop() const
Return loop.
Definition: CollisionChain2D.h:54
AttributeAnimationInfo(Animatable *animatable, const AttributeInfo &attributeInfo, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
Construct.
Definition: Animatable.cpp:42
bool autoAspectRatio_
Auto aspect ratio flag.
Definition: Camera.h:276
wchar_t * buffer_
String buffer, null if not allocated.
Definition: Str.h:624
void Reset()
Reset all animating bones to initial positions.
Definition: Skeleton.cpp:129
float startEndTailTime_
The time the tail become end of trail.
Definition: RibbonTrail.h:254
void SetMinHeight(int height)
Set minimum height.
Definition: UIElement.cpp:620
Material * material_
Material.
Definition: Batch.h:90
bool GetFlipX() const
Return flip X.
Definition: TileMapDefs2D.h:140
IntVector2 offset_
Offset (for trimmed sprite).
Definition: Sprite2D.h:103
unsigned stencilWriteMask_
Stencil write bitmask.
Definition: Graphics.h:839
Node * Prev()
Return previous node.
Definition: List.h:54
PODVector< Drawable * > drawables_
Drawable objects.
Definition: Octree.h:140
Spriter data.
Definition: SpriterData2D.h:55
bool inWorld_
Body exists in world flag.
Definition: RigidBody.h:307
void SetFps(int fps)
Set simulation substeps per second.
Definition: PhysicsWorld.cpp:313
virtual ~Octant()
Destruct. Move drawables to root if available (detach if not) and free child octants.
Definition: Octree.cpp:80
LightVSVariation
Light vertex shader variations.
Definition: Renderer.h:63
Feature
Definition: IKEffector.h:42
Renderer * GetRenderer() const
Return renderer subsystem.
Definition: View.cpp:679
Color ambientEndColor_
Cached ambient end color.
Definition: Zone.h:152
void WriteInt(XMLElement &element, const String &name, int value) const
Write integer.
Definition: ParticleEffect2D.cpp:542
SharedPtr< Texture > texture_
Texture.
Definition: Cursor.h:80
void Render(bool renderUICommand=false)
Render the UI. If renderUICommand is false (default), is assumed to be the default UI render to backb...
Definition: UI.cpp:483
PODVector< float > * vertexData_
Vertex data.
Definition: UIBatch.h:87
Variant GetAttributeDefault(unsigned index) const
Return attribute default value by index. Return empty if illegal index.
Definition: Serializable.cpp:946
bool GetUseXML() const
Return whether was loaded using XML data.
Definition: UnknownComponent.h:74
PODVector< unsigned short > offMeshFlags_
Offmesh connection flags.
Definition: NavBuildData.h:72
void OnMarkedDirty(Node *node) override
Definition: CrowdAgent.cpp:622
Doubly-linked list node base class.
Definition: ListBase.h:38
float timeToLive_
Time to live.
Definition: ParticleEmitter2D.h:37
BoundingBox worldBoundingBox_
World bounding box.
Definition: Octree.h:136
void HandleFocusChanged(StringHash eventType, VariantMap &eventData)
Handle focus changed.
Definition: ListView.cpp:1148
void SetAnimationLodBias(float bias)
Set animation LOD bias.
Definition: AnimatedModel.cpp:539
virtual bool Build()
Rebuild the navigation mesh. Return true if successful.
Definition: NavigationMesh.cpp:384
void GetRawData(const unsigned char *&vertexData, unsigned &vertexSize, const unsigned char *&indexData, unsigned &indexSize, const PODVector< VertexElement > *&elements) const
Return raw vertex and index data for CPU operations, or null pointers if not available....
Definition: Geometry.cpp:212
Vector4 Abs() const
Return absolute vector.
Definition: Vector4.h:183
bool IsPressed(unsigned button, const Controls &previousControls) const
Check if a button was pressed on this frame. Requires previous frame's controls.
Definition: Controls.h:58
Material * GetMaterial() const
Return material.
Definition: RibbonTrail.cpp:901
U second_
Value.
Definition: HashMap.h:78
bool updateQueued_
Update queued flag.
Definition: RenderSurface.h:156
@ FONT_HINT_LEVEL_NORMAL
Full hinting, using either the font's own hinting or FreeType's auto-hinter.
Definition: UI.h:45
CascadeParameters shadowCascade_
Directional light cascaded shadow parameters.
Definition: Light.h:359
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Handle screen mode event.
Definition: Renderer.cpp:1946
AnimationTrack * GetTrack(unsigned index)
Return animation track by index.
Definition: Animation.cpp:389
~RefCount()
Destruct.
Definition: RefCounted.h:45
float animationLodBias_
Animation LOD bias.
Definition: RibbonTrail.h:184
void SetUpdateInvisible(bool enable)
Set whether to update animation and the bounding box when not visible. Recommended to enable for phys...
Definition: AnimatedModel.cpp:545
TileMapObjectType2D GetObjectType() const
Return type.
Definition: TileMapDefs2D.h:171
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: Material.cpp:388
void UpdateSkinning()
Recalculate skinning.
Definition: DecalSet.cpp:1072
void Clear(int maxSortedInstances)
Clear for new frame by clearing all groups and batches.
Definition: Batch.cpp:720
void DoExit()
Actually perform the exit actions.
Definition: Engine.cpp:985
bool GetUseMutableGlyphs() const
Return whether is using mutable (eraseable) glyphs for fonts.
Definition: UI.h:200
PODVector< unsigned char > GetScriptNetworkDataAttr() const
Get script network serialization attribute by calling a script function.
Definition: ScriptInstance.cpp:518
void SubscribeToScriptMethodEvents()
Subscribe to script method events.
Definition: LuaScriptInstance.cpp:618
float GetMinRadiusVariance() const
Return min radius variance.
Definition: ParticleEffect2D.h:218
bool usingSDFShader_
Flag for whether currently using SDF shader defines in the generated material.
Definition: Text3D.h:214
UIElement * window_
UI element containing the whole UI layout. Typically it is a Window element type.
Definition: MessageBox.h:67
float distance_
Hit distance from ray origin.
Definition: PhysicsWorld.h:73
void DynamicCast(const WeakPtr< U > &rhs)
Perform a dynamic cast from a weak pointer of another type.
Definition: Ptr.h:465
bool WriteByte(signed char value)
Write an 8-bit integer.
Definition: Serializer.cpp:51
WeakPtr< Zone > lastAmbientEndZone_
Last zone used for ambient gradient end color.
Definition: Zone.h:170
void RenderShadowMap(const LightBatchQueue &queue)
Render a shadow map.
Definition: View.cpp:3059
void SetAnimationStatesAttr(const VariantVector &value)
Set animation states attribute.
Definition: AnimatedModel.cpp:813
UIElement * GetWindow() const
Return dialog window.
Definition: MessageBox.h:60
void Update()
Send frame update events.
Definition: Engine.cpp:684
void RenderQuad(RenderPathCommand &command)
Perform a quad rendering command.
Definition: View.cpp:1839
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: Model.cpp:368
Vector2 position_
Position.
Definition: Text.h:50
unsigned long long GetUInt64() const
Return unsigned 64 bit int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1115
Vector< WeakPtr< Component > > listeners_
Node listeners.
Definition: Node.h:701
TextEffect textEffect_
Text effect.
Definition: Text.h:239
float shadowResolution_
Shadow resolution.
Definition: Light.h:387
float weight_
Blending weight.
Definition: AnimationState.h:171
Vector2 GetWorldScale2D() const
Return scale in world space (for Urho2D).
Definition: Node.h:477
void SetMinRotationSpeed(float speed)
Set particle minimum rotation speed.
Definition: ParticleEffect.cpp:570
static const IntVector2 ZERO
Zero vector.
Definition: Vector2.h:161
float shadowDistance_
Shadow distance.
Definition: Drawable.h:369
BoundingBox worldBoundingBox_
World-space bounding box of the navigation mesh tile.
Definition: NavBuildData.h:62
Vector< SharedPtr< Image > > loadImages_
Layer image files acquired during BeginLoad.
Definition: Texture2DArray.h:92
bool HasElement(VertexElementType type, VertexElementSemantic semantic, unsigned char index=0) const
Return whether has an element semantic with specific type.
Definition: VertexBuffer.h:94
SharedPtr< PListFile > loadPListFile_
PList file used while loading.
Definition: SpriteSheet2D.h:88
LuaFunction(lua_State *L, int index)
Construct from a Lua function object at the specified stack index.
Definition: LuaFunction.cpp:39
Vector3 point_
Point.
Definition: OctreeQuery.h:90
bool operator<(const SharedArrayPtr< T > &rhs) const
Test for less than with another array pointer.
Definition: ArrayPtr.h:126
Node * GetImageNode() const
Return image node (for image layer only).
Definition: TileMapLayer2D.cpp:330
Intersection IsInside(const Vector2 &point) const
Test whether a point is inside.
Definition: Rect.h:212
SharedPtr< Texture2D > defaultLightSpot_
Default spotlight attenuation texture.
Definition: Renderer.h:494
unsigned dataSize_
Compressed sound data size in bytes.
Definition: OggVorbisSoundStream.h:54
bool SetResourceRef(const ResourceRef &value)
Set a resource reference attribute.
Definition: XMLElement.cpp:444
Camera * GetCullCamera() const
Return culling camera. Normally same as the viewport camera.
Definition: View.h:145
void RemoveTrigger(unsigned index)
Remove a trigger point by index.
Definition: Animation.cpp:358
PODVector< Matrix3x4 > skinMatrices_
Skinning matrices.
Definition: AnimatedModel.h:221
void UpdateMorphs()
Reapply all vertex morphs.
Definition: AnimatedModel.cpp:1342
void SetAngularOffset(float angularOffset)
Set angular offset.
Definition: ConstraintMotor2D.cpp:74
~CollisionBox2D() override
Destruct.
bool IsInsideCombined(IntVector2 position, bool isScreen)
Return whether a point (either in element or screen coordinates) is inside the combined rect of the e...
Definition: UIElement.cpp:1749
RenderSurface * GetDepthStencil(RenderSurface *renderTarget)
Return the proper depth-stencil surface to use for a rendertarget.
Definition: View.cpp:3141
void AddCylinder(const Vector3 &position, float radius, float height, const Color &color, bool depthTest=true)
Add a cylinder.
Definition: DebugRenderer.cpp:335
void * GetVoidPtr() const
Return void pointer or null on type mismatch. RefCounted pointer will be converted.
Definition: Variant.h:1209
void Clear()
Clear the set.
Definition: HashSet.h:392
void SetUseSystemClipboard(bool enable)
Set whether to use system clipboard. Default false.
Definition: UI.cpp:681
float DotProduct(const Vector4 &rhs) const
Calculate dot product.
Definition: Vector4.h:171
unsigned Hash(const T &key) const
Compute a hash based on the key and the bucket size.
Definition: HashMap.h:780
BoundingBox boundingBox_
Local-space bounding box.
Definition: Skeleton.h:80
String lastMessage_
Last log message.
Definition: Log.h:122
float LengthSquared() const
Return squared length.
Definition: Vector3.h:348
void SetScale2D(float x, float y)
Set scale in parent space (for Urho2D).
Definition: Node.h:158
CrowdAgentRequestedTarget requestedTargetType_
Requested target type.
Definition: CrowdAgent.h:212
Vector< SharedPtr< Geometry > > geometries_
All geometries.
Definition: CustomGeometry.h:168
void SetDebugDepthTest(bool enable)
Set debug geometry depth test mode. Called both by PhysicsWorld itself and physics components.
Definition: PhysicsWorld.cpp:766
Vector< T > & operator+=(const T &rhs)
Add-assign an element.
Definition: Vector.h:130
void SetSpeed(float speed)
Set speed.
Definition: AnimatedSprite2D.cpp:190
void SetDirectoryMode(bool enable)
Set directory selection mode. Default false.
Definition: FileSelector.cpp:241
unsigned offset_
Start position within a package file, 0 for regular files.
Definition: File.h:139
bool colorGradient_
Has color gradient flag.
Definition: UIElement.h:809
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: TileMapDefs2D.h:159
Node * GetEndPoint() const
Return endpoint node.
Definition: OffMeshConnection.cpp:120
float GetMaxVelocity() const
Return particle maximum velocity.
Definition: ParticleEffect.h:296
String tag_
Tag name.
Definition: RenderPath.h:138
@ JSON_STRING
JSON string type.
Definition: JSONValue.h:42
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: SpriteSheet2D.cpp:77
bool GetLogStatistics() const
Return whether to log data in/out statistics.
Definition: Connection.h:207
unsigned FindChild(UIElement *element) const
Find child index. Return M_MAX_UNSIGNED if not found.
Definition: UIElement.cpp:1427
VariantMap globalVars_
Variant map for global variables that can persist throughout application execution.
Definition: Context.h:246
String startupErrors_
Collected startup error log messages.
Definition: Application.h:66
void InsertNode(Node *dest, const T &value)
Allocate and insert a node into the list.
Definition: List.h:430
static void RegisterObject(Context *context)
Register object factory.
Definition: Texture3D.cpp:57
Tile map file.
Definition: TmxFile2D.h:157
void SetPriority(int priority)
Set priority.
Definition: UIElement.cpp:843
unsigned Capacity() const
Return buffer capacity.
Definition: Str.h:430
float emitRotationDelta_
Emit rotation delta.
Definition: ParticleEmitter2D.h:72
bool Load(const XMLElement &source)
Load from an XML element. Return true if successful.
Definition: Material.cpp:397
UIElement * GetRoot() const
Return root element.
Definition: UIElement.cpp:1673
StringHash GetType() const
Return type.
Definition: Object.h:54
float Range() const
Return range, defined as the difference between the greatest and least RGB component.
Definition: Color.cpp:213
bool sRGB_
Data is sRGB.
Definition: Image.h:230
void HandleRenderSurfaceUpdate(StringHash eventType, VariantMap &eventData)
Handle render surface update event.
Definition: TextureCube.cpp:336
Vector3 GetWorldDirection() const
Return direction in world space.
Definition: Node.h:438
bool Open(const String &pipeName, bool isServer)
Open the pipe in either server or client mode. If already open, the existing pipe is closed....
Definition: NamedPipe.cpp:210
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: ArrayPtr.h:171
void SetMemoryUse(unsigned size)
Set memory use in bytes, possibly approximate.
Definition: Resource.cpp:105
String typeName_
Type name of the stored component.
Definition: UnknownComponent.h:93
Background loader of resources. Owned by the ResourceCache.
Definition: BackgroundLoader.h:53
Variant SubstractAndMultiply(const Variant &value1, const Variant &value2, float t) const
Return (value1 - value2) * t.
Definition: ValueAnimation.cpp:513
~ScriptEventInvoker() override
Destructor, release the ref it we still hold it.
Definition: ScriptFile.cpp:1035
float GetRowSpacing() const
Return row spacing.
Definition: Text.h:142
bool IsLooped() const
Return whether looped.
Definition: AnimationState.h:130
ResourceRequest
Resource request types.
Definition: ResourceCache.h:62
const IntVector2 & GetModalFrameSize() const
Get modal frame size.
Definition: Window.h:125
StencilOp GetStencilPass() const
Return stencil operation to do if stencil test passes.
Definition: Graphics.h:543
High-level rendering subsystem. Manages drawing of 3D views.
Definition: Renderer.h:175
ResourceRef(const char *type, const char *name)
Construct with type and resource name.
Definition: Variant.h:115
T & Back()
Return last element.
Definition: List.h:411
void UpdateElements()
Update elements to layout properly. Call this after manually adjusting the sub-elements.
Definition: Console.cpp:272
unsigned GetIndexCount() const
Return number of indices.
Definition: Geometry.h:89
int width_
Width of the window. 0 to pick automatically.
Definition: Graphics.h:131
int GetMinWidth() const
Return minimum width.
Definition: UIElement.h:424
UniquePtr< btCompoundShape > compoundShape_
Bullet compound collision shape.
Definition: RigidBody.h:271
DropDownList(Context *context)
Construct.
Definition: DropDownList.cpp:42
Database connection.
Definition: ODBCConnection.h:34
static bool IsActive()
Return true if active.
Definition: EventProfiler.h:73
Vector3 ToVector3() const
Return RGB as a three-dimensional vector.
Definition: Color.h:162
float GetDistanceFactor() const
Return priority reduction distance factor.
Definition: NetworkPriority.h:56
HashMap< StringHash, String > varNames_
Registered node user variable reverse mappings.
Definition: Scene.h:302
const sqlite3 * GetConnectionImpl() const
Return the underlying implementation connection object pointer. It is sqlite* when using SQLite3 or n...
Definition: SQLiteConnection.h:53
SpriterInstance(Component *owner, SpriterData *spriteData)
Constructor with spriter data.
Definition: SpriterInstance2D.cpp:38
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: RigidBody.cpp:925
BoundingBox GetBoundingBox() const
Return bounding box attribute, or empty if missing.
Definition: XMLElement.cpp:759
float ReadFloat()
Read a float.
Definition: Deserializer.cpp:124
HashMap< WeakPtr< UIElement >, MouseButtonFlags > touchDragElements_
UI elements that are being touched with touch input.
Definition: UI.h:433
bool Load(const unsigned char *fontData, unsigned fontDataSize, float pointSize) override
Load font face.
Definition: FontFaceBitmap.cpp:51
void SetRotatePerSecond(float rotatePerSecond)
Set rotate per second.
Definition: ParticleEffect2D.cpp:439
Renders several object instances while culling and receiving light as one unit. Can be used as a CPU-...
Definition: StaticModelGroup.h:31
void Insert(const Iterator &dest, const T &value)
Insert an element at position.
Definition: List.h:285
Quaternion() noexcept
Construct an identity quaternion.
Definition: Quaternion.h:39
void RemoveComponents()
Template version of removing all components of specific type.
Definition: Node.h:722
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Texture3D.cpp:62
RenderCommandType
Rendering path command types.
Definition: RenderPath.h:40
Matrix4 viewProj_
Combined view and projection matrix.
Definition: OcclusionBuffer.h:207
void UpdateMaterial()
Update material.
Definition: StaticSprite2D.cpp:348
VertexMaskFlags elementMask_
Vertex elements.
Definition: Model.h:44
ConstIterator Find(const T &value) const
Return const iterator to value, or to the end if not found.
Definition: Vector.h:473
void SetBatchShaders(Batch &batch, Technique *tech, bool allowShadows, const BatchQueue &queue)
Choose shaders for a forward rendering batch. The related batch queue is provided in case it has extr...
Definition: Renderer.cpp:1162
float GetRange() const
Return slider range.
Definition: Slider.h:82
dtTileCacheContourSet * contourSet_
TileCache specific recast contour set.
Definition: NavBuildData.h:110
void InsertItem(unsigned index, UIElement *item)
Insert item to a specific position.
Definition: DropDownList.cpp:159
HashSet(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: HashSet.h:198
static unsigned GetFloat32Format()
Return the API-specific single channel 32-bit float texture format.
Definition: OGLGraphics.cpp:2652
bool stencilTest_
Stencil test enable flag.
Definition: Graphics.h:843
void SetMessage(const String &text)
Set message text. No-ops if there is no message text element.
Definition: MessageBox.cpp:120
PListValueVector & ConvertToValueVector()
Convert to value vector (internal use only).
Definition: PListFile.cpp:264
bool SetQuery(const String &queryString, const String &variableString=String::EMPTY, bool bind=true)
Set XPath query string and variable string. The variable string format is "name1:type1,...
Definition: XMLElement.cpp:1114
void SetTextureQuality(MaterialQuality quality)
Set texture quality level. See the QUALITY constants in GraphicsDefs.h.
Definition: Renderer.cpp:331
void Stop()
Set the running flag to false and wait for the thread to finish.
Definition: Thread.cpp:97
Variant value_
Value.
Definition: ValueAnimation.h:53
IntRect ReadIntRect()
Read an IntRect.
Definition: Deserializer.cpp:138
void Activate()
Activate rigid body if it was resting.
Definition: RigidBody.cpp:576
TransformSpace
Transform space for translations and rotations.
Definition: Node.h:50
bool orthographic_
Orthographic mode flag.
Definition: Camera.h:242
void MessageCallback(const asSMessageInfo *msg)
Log a message from the script engine.
Definition: Script.cpp:235
Animation.
Definition: SpriterData2D.h:146
void OnClickBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse click begin.
Definition: CheckBox.cpp:75
~Text() override
Destruct.
IntVector2 GetIntVector2() const
Return IntVector2, for string type.
Definition: PListFile.cpp:222
HashMap< TextureUnit, SharedPtr< Texture > > textures_
Textures.
Definition: Material.h:287
HashMap< int, SharedPtr< Technique > > cachedTechniques_
Cached techniques per blend mode.
Definition: Renderer2D.h:133
void EndFrame()
End frame rendering and swap buffers.
Definition: OGLGraphics.cpp:625
void HandleAttributeAnimationRemoved(StringHash eventType, VariantMap &eventData)
Handle attribute animation removed.
Definition: Animatable.cpp:562
Matrix3x4 inverseWorld_
Cached inverse world transform matrix.
Definition: Zone.h:136
bool sixteenBit_
Sixteen bit flag.
Definition: Sound.h:128
bool IsVisible() const
Return visible flag.
Definition: Terrain.h:184
HashMap< unsigned, BatchQueue > batchQueues_
Batch queues by pass index.
Definition: View.h:419
Vector< TechniqueEntry > techniques_
Techniques.
Definition: Material.h:285
bool GetSwapXY() const
Return swap X and Y.
Definition: TileMapDefs2D.h:144
virtual void Invoke(VariantMap &eventData)=0
Invoke event handler function.
FrameInfo frame_
Information of the frame being rendered.
Definition: View.h:352
bool Load(Deserializer &source) override
Load from binary data. Return true if successful.
Definition: Node.cpp:96
bool ExecuteFunction(const String &functionName)
Execute script function.
Definition: LuaScript.cpp:316
CollisionShape2D(Context *context)
Construct.
Definition: CollisionShape2D.cpp:38
virtual void MarkNetworkUpdate()
Mark for attribute check on the next network update.
Definition: Serializable.h:82
void Solve()
Invokes the solver. The solution is applied back to the scene graph automatically.
Definition: IKSolver.cpp:399
Vector3 position_
Bone position.
Definition: Animation.h:58
SharedPtr< WorkItem > GetFreeItem()
Get pointer to an usable WorkItem from the item pool. Allocate one if no more free items.
Definition: WorkQueue.cpp:108
unsigned Size() const
Return size of array or number of keys in object.
Definition: JSONValue.cpp:242
PODVector< VertexElement > elements_
Vertex elements.
Definition: VertexBuffer.h:154
const Vector< LightBatchQueue > & GetLightQueues() const
Return light batch queues.
Definition: View.h:172
void SetWindowPosition(const IntVector2 &position)
Set window position. Sets initial position if window is not created yet.
Definition: Graphics.cpp:87
bool doubleWidth_
The dimension use for next growth. Used internally.
Definition: AreaAllocator.h:68
void RemoveRenderTargets(const String &tag)
Remove rendertargets by tag name.
Definition: RenderPath.cpp:457
Helper class for forwarding events to script objects that are not part of a scene.
Definition: ScriptFile.h:158
Component that describes global rendering properties.
Definition: Zone.h:33
float GetInnerAngle() const
Return inner angle in degrees.
Definition: SoundSource3D.h:72
~CollisionShape() override
Destruct. Free the geometry data and clean up unused data from the geometry data cache.
Definition: CollisionShape.cpp:471
Vector3 directionMax_
Particle direction maximum.
Definition: ParticleEffect.h:381
const StringVector & GetStringVector() const
Return a string vector or empty on type mismatch.
Definition: Variant.h:1238
Pass * CreatePass(const String &name)
Create a new pass.
Definition: Technique.cpp:408
bool useXML_
Flag of whether was loaded using XML/JSON data.
Definition: UnknownComponent.h:101
Frustum Transformed(const Matrix3 &transform) const
Return transformed by a 3x3 matrix.
Definition: Frustum.cpp:189
FlagSet operator&(const Enum value) const
Bitwise AND against Enum value.
Definition: FlagSet.h:118
unsigned GetCharIndex(const IntVector2 &position)
Return char index corresponding to position within element, or M_MAX_UNSIGNED if not found.
Definition: LineEdit.cpp:620
LoadMode mode_
Current load mode.
Definition: Scene.h:73
String autoCompleteLine_
Store the original line which is being auto-completed.
Definition: Console.h:186
Hash map node.
Definition: HashMap.h:82
unsigned displayedRows_
Maximum displayed rows.
Definition: Console.h:166
unsigned frequency_
Default frequency.
Definition: Sound.h:124
const dtQueryFilter * GetDetourQueryFilter(unsigned queryFilterType) const
Get the detour query filter.
Definition: CrowdManager.cpp:690
void SetEnabled(bool enable)
Set whether reacts to input. Default false, but is enabled by subclasses if applicable.
Definition: UIElement.cpp:887
float GetInertia() const
Return inertia.
Definition: CollisionShape2D.cpp:266
HashMap< RigidBody2D *, DelayedWorldTransform2D > delayedWorldTransforms_
Delayed (parented) world transform assignments.
Definition: PhysicsWorld2D.h:244
BlendMode blendMode_
Blending mode.
Definition: UIBatch.h:79
b2Body * body_
Box2D body.
Definition: RigidBody2D.h:179
float angle_
Angle.
Definition: ParticleEffect2D.h:272
Text(Context *context)
Construct.
Definition: Text.cpp:54
static const unsigned PRIORITY_LAST
Sets to priority so that a package or file is pushed to the end of the vector.
Definition: ResourceCache.h:41
void HandleCloseButtonPressed(StringHash eventType, VariantMap &eventData)
Handle close button being pressed.
Definition: Console.cpp:520
float GetFriction() const
Return friction coefficient.
Definition: RigidBody.cpp:663
void SetNetParentAttr(const PODVector< unsigned char > &value)
Set network parent attribute.
Definition: Node.cpp:1475
void SetCellHeight(float height)
Set cell height.
Definition: NavigationMesh.cpp:241
~BillboardSet() override
Destruct.
Spline class to get a point on it based off the interpolation mode.
Definition: Spline.h:49
void Yaw(float angle, TransformSpace space=TS_LOCAL)
Rotate around the Y axis.
Definition: Node.cpp:655
StringHash RegisterString(const StringHash &hash, const char *string)
Register string for hash reverse mapping. Could be used from StringHash ctor.
Definition: StringHashRegister.cpp:48
bool modal_
Modal flag.
Definition: Window.h:159
void SetNumTechniques(unsigned num)
Set number of techniques.
Definition: Material.cpp:917
WindowModeParams primaryWindowMode_
Definition: Graphics.h:721
String name_
Bone name.
Definition: Skeleton.h:60
float outerAngle_
Outer angle for directional attenuation.
Definition: SoundSource3D.h:88
unsigned ReadUInt()
Read a 32-bit unsigned integer.
Definition: Deserializer.cpp:98
bool IsDesktop() const
Return whether requires desktop level hardware.
Definition: Technique.h:219
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Handle screen mode event.
Definition: UI.cpp:1749
Image UI element with optional border.
Definition: BorderImage.h:35
bool sdfFont_
Signed distance field font flag.
Definition: Font.h:111
void SetSimulatedPacketLoss(float probability)
Set simulated packet loss probability between 0.0 - 1.0.
Definition: Network.cpp:586
bool CreateObject(const String &scriptObjectType)
Create script object. Return true if successful.
Definition: LuaScriptInstance.cpp:380
bool SetCurrentDir(const String &pathName)
Set the current working directory.
Definition: FileSystem.cpp:306
bool IsResolveDirty() const
Return whether multisampled texture needs resolve.
Definition: Texture.h:115
ResourceRef ReadResourceRef()
Read a resource reference.
Definition: Deserializer.cpp:284
~ConstraintMouse2D() override
Destruct.
int width_
Window width in pixels.
Definition: Graphics.h:725
void Pause()
Pause worker threads.
Definition: WorkQueue.cpp:221
A link between otherwise unconnected regions of the navigation mesh.
Definition: OffMeshConnection.h:31
bool updateEnabled_
Automatic simulation update enabled flag.
Definition: PhysicsWorld.h:348
unsigned capacity_
Buffer capacity.
Definition: VectorBase.h:66
float rowHeight_
Row height.
Definition: FontFace.h:114
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: AnimatedModel.cpp:313
const IntRect & GetImageBorder() const
Return border image dimensions. Zero rect uses border screen dimensions.
Definition: BorderImage.h:85
int WeakRefs() const
Return the object's weak reference count.
Definition: Ptr.h:489
Vector< SharedPtr< ShaderVariation > > & GetPixelShaders()
Return pixel shaders.
Definition: Technique.h:135
void SetShadowResolution(float resolution)
Set shadow resolution between 0.25 - 1.0. Determines the shadow map to use.
Definition: Light.cpp:398
void SetFarClip(float farClip)
Set far clip distance.
Definition: Camera.cpp:122
VectorBuffer msg_
Reusable message buffer.
Definition: Connection.h:313
void HandleUIMouseClick(StringHash eventType, VariantMap &eventData)
Handle global UI mouseclick to check for selection change.
Definition: ListView.cpp:1018
void SetHierarchyMode(bool enable)
Enable hierarchy mode. Allows items to have parent-child relationship at different indent level and t...
Definition: ListView.cpp:712
void SetRelative(bool enable)
Set whether billboards are relative to the scene node.
Definition: ParticleEffect.cpp:455
bool lightPrepassSupport_
Light pre-pass rendering support flag.
Definition: Graphics.h:739
float GetLength() const
Return length in seconds.
Definition: Sound.cpp:318
void SetCenter(const Vector2 ¢er)
Set center.
Definition: CollisionBox2D.cpp:78
float autoFadeTime_
Animation autofade on stop -time, 0 if disabled.
Definition: AnimationController.h:66
@ HM_ALWAYS
Highlight always.
Definition: ListView.h:41
void SetFileName(const String &fileName)
Set current filename.
Definition: FileSelector.cpp:210
void SetIndexBuffer(IndexBuffer *buffer)
Set index buffer.
Definition: OGLGraphics.cpp:1003
UIElement * GetRoot() const
Return root UI element.
Definition: UI.h:135
void SetTextAlignment(HorizontalAlignment align)
Set row alignment.
Definition: Text.cpp:311
const String & GetVertexShaderDefines() const
Return additional vertex shader defines.
Definition: Material.h:206
SharedPtr< Image > nextLevel_
Precalculated mip level image.
Definition: Image.h:236
KeyValue pair_
Key-value pair.
Definition: HashMap.h:94
void PauseSoundType(const String &type)
Pause playback of specific sound type. This allows to suspend e.g. sound effects or voice when the ga...
Definition: Audio.cpp:170
float z_
Z coordinate.
Definition: Quaternion.h:467
PODVector< Drawable * > geometries_
Visible geometry objects.
Definition: View.h:394
ShaderVariation * GetPixelShader() const
Return the pixel shader.
Definition: OGLShaderProgram.cpp:328
void SetInnerAngle(float angle)
Set inner angle in degrees. Inside this angle sound will not be attenuated.By default 360,...
Definition: SoundSource3D.cpp:131
HashMap< Texture2D *, HashMap< int, SharedPtr< Material > > > cachedMaterials_
Cached materials.
Definition: Renderer2D.h:131
static void RegisterObject(Context *context)
Register object factory.
Definition: UISelectable.cpp:33
void SetFillMode(FillMode mode)
Set polygon fill mode. Interacts with the camera's fill mode setting so that the "least filled" mode ...
Definition: Material.cpp:1084
Script dictionary value.
Definition: Addons.h:153
void SetUpdateFps(int fps)
Set network update FPS.
Definition: Network.cpp:573
CustomVariantValue * Clone() const override
Clone.
Definition: Variant.h:252
unsigned char lightStencilValue_
Current stencil value for light optimization.
Definition: Renderer.h:584
unsigned numPoints_
Number of points.
Definition: RibbonTrail.h:221
void SetCategoryBits(int categoryBits)
Set filter category bits.
Definition: CollisionShape2D.cpp:94
Matrix3 GetMatrix3(const String &name) const
Return a Matrix3 attribute, or zero matrix if missing.
Definition: XMLElement.cpp:975
bool CheckActiveParticles() const
Return whether has active particles.
Definition: ParticleEmitter.cpp:561
void RegisterLoader()
Register loader.
Definition: LuaScript.cpp:334
void SetAnimationSet(AnimationSet2D *animationSet)
Set animation set.
Definition: AnimatedSprite2D.cpp:102
bool LoadXML(const XMLElement &source) override
Load from XML data. Removes all existing child nodes and components first. Return true if successful.
Definition: Scene.cpp:165
Heightmap terrain component.
Definition: Terrain.h:38
float GetRandomRotation() const
Return random rotation.
Definition: ParticleEffect.cpp:816
Vector3 GetWheelDirection(int wheel) const
Get wheel direction vector.
Definition: RaycastVehicle.cpp:628
int asyncLoadingMs_
Maximum milliseconds per frame to spend on async scene loading.
Definition: Scene.h:324
TriangleMeshData(Model *model, unsigned lodLevel)
Construct from a model.
Definition: CollisionShape.cpp:199
Texture2D(Context *context)
Construct.
Definition: Texture2D.cpp:42
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: GPUObject.h:73
VariantVector loadedWheelData_
Loaded data temporarily wait here for ApplyAttributes to come pick them up.
Definition: RaycastVehicle.h:206
PODVector< IntRect > freeAreas_
Free rectangles.
Definition: AreaAllocator.h:62
bool WritePackedVector3(const Vector3 &value, float maxAbsCoord)
Write a Vector3 packed into 3 x 16 bits with the specified maximum absolute range.
Definition: Serializer.cpp:121
bool Save(Serializer &dest) const
Write to a stream. Return true if successful.
Definition: Skeleton.cpp:77
EventReceiverGroup * GetEventReceivers(StringHash eventType)
Return event receivers for an event type, or null if they do not exist.
Definition: Context.h:200
bool forceUpdate_
Force update flag (ignore animation LOD momentarily).
Definition: RibbonTrail.h:245
void SetFullImageRect()
Use whole texture as the image.
Definition: Sprite.cpp:207
PListValueType GetType() const
Return type.
Definition: PListFile.h:97
unsigned GetNumHistoryRows() const
Return history maximum size.
Definition: Console.h:111
WeakPtr< DynamicNavigationMesh > ownerMesh_
Pointer to the navigation mesh we belong to.
Definition: Obstacle.h:91
void setDebugMode(int debugMode) override
Set debug draw flags.
Definition: PhysicsWorld.h:156
b2WeldJointDef jointDef_
Box2D joint def.
Definition: ConstraintWeld2D.h:64
Texture * FindNamedTexture(const String &name, bool isRenderTarget, bool isVolumeMap=false)
Get a named texture from the rendertarget list or from the resource cache, to be either used as a ren...
Definition: View.cpp:3183
String(String &&str) noexcept
Move-construct from another string.
Definition: Str.h:70
HashMap< unsigned, unsigned > shaderRemapping_
Shader remapping table for 2-pass state and distance sort.
Definition: Batch.h:250
float GetBytesInPerSec() const
Return bytes received per second.
Definition: Connection.cpp:1089
float GetCursorBlinkRate() const
Return cursor blink rate.
Definition: LineEdit.h:96
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector4.h:195
BoundingBox(const BoundingBox &box) noexcept
Copy-construct from another bounding box.
Definition: BoundingBox.h:54
Lua script object component.
Definition: LuaScriptInstance.h:60
long long totalTime_
Total accumulated time.
Definition: Profiler.h:164
bool castShadows_
Shadowcaster flag.
Definition: Drawable.h:339
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Obstacle.cpp:89
void HandleResourceBackgroundLoaded(StringHash eventType, VariantMap &eventData)
Handle a background loaded resource completing.
Definition: Scene.cpp:1173
float GetShadowIntensity() const
Return light intensity in shadow.
Definition: Light.h:277
bool splineTangentsDirty_
Spline tangents dirty.
Definition: ValueAnimation.h:169
bool CombineText(const pugi::xml_node &patch, const pugi::xml_node &original, bool prepend) const
Combine two text nodes.
Definition: XMLFile.cpp:364
void SetLineAntiAlias(bool enable)
Set line antialiasing on/off. Has effect only on models that consist of line lists.
Definition: Material.cpp:1100
void MarkShapeDirty()
Mark shape dirty.
Definition: CollisionShape.h:287
void DisableInternalLayoutUpdate()
Disable automatic layout update for internal elements.
Definition: ListView.cpp:331
unsigned GetLastHeardTime() const
Return the time since last received data from the remote host in milliseconds.
Definition: Connection.cpp:1084
const String & GetShape() const
Get current shape.
Definition: Cursor.h:121
FlagSet(Integer value)
Ctor by integer.
Definition: FlagSet.h:56
~Scene() override
Destruct.
Definition: Scene.cpp:82
AnimationBlendMode GetBlendMode() const
Return blending mode.
Definition: AnimationState.h:136
float GetRotatePerSecondVariance() const
Return rotate per second variance.
Definition: ParticleEffect2D.h:224
bool UpdateToGPU()
Update the shadow data to the GPU buffer.
Definition: OGLVertexBuffer.cpp:260
void SetCorrectionFactor(float correctionFactor)
Set correction factor.
Definition: ConstraintMotor2D.cpp:119
int highestZonePriority_
Highest zone priority currently visible.
Definition: View.h:366
FileMode
File open mode.
Definition: File.h:52
void HandleModelReloadFinished(StringHash eventType, VariantMap &eventData)
Handle model reload finished.
Definition: StaticModel.cpp:446
static void RegisterObject(Context *context)
Register object factory.
Definition: SoundSource.cpp:131
Vector3 normal_
Plane normal.
Definition: Plane.h:118
Vector4 ReadVector4()
Read a Vector4.
Definition: Deserializer.cpp:189
void SetGravityScale(float gravityScale)
Set gravity scale.
Definition: RigidBody2D.cpp:268
CursorShapeInfo(int systemCursor)
Construct with system cursor.
Definition: Cursor.h:68
const Vector2 & GetAnchor() const
Return anchor.
Definition: ConstraintFriction2D.h:51
bool GetDrawPair() const
Return draw pair.
Definition: PhysicsWorld2D.h:174
void SetEventFrame(float time, const StringHash &eventType, const VariantMap &eventData=VariantMap())
Set event frame.
Definition: ValueAnimation.cpp:309
Octant * GetParent() const
Return parent octant.
Definition: Octree.h:85
float GetRestitution() const
Return restitution.
Definition: CollisionShape2D.h:89
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RigidBody2D.cpp:93
ResourceRef GetShapeTextureAttr() const
Return shape texture attribute.
Definition: Light.cpp:537
Debug render triangle.
Definition: DebugRenderer.h:66
void SetBlendMode(AnimationBlendMode mode)
Set blending mode.
Definition: AnimationState.cpp:179
void OnShowPopup() override
React to the popup being shown.
Definition: DropDownList.cpp:113
Database query result.
Definition: ODBCResult.h:33
void SetClipBorder(const IntRect &rect)
Set child element clipping border.
Definition: UIElement.cpp:814
bool SaveBMP(const String &fileName) const
Save in BMP format. Return true if successful.
Definition: Image.cpp:1249
void SetEventHandler(EventHandler *handler)
Set current event handler. Called by Object.
Definition: Context.h:223
StringHash GetNameHash() const
Return hash of the package file name.
Definition: PackageFile.h:68
void SetEditable(bool enable)
Set whether value is editable through input. Not applicable to all elements. Default true.
Definition: UIElement.cpp:918
Bone * bone_
Bone pointer.
Definition: AnimationState.h:61
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: LogicComponent.cpp:192
int height_
Height.
Definition: TileMapDefs2D.h:56
Color startColor_
Start color.
Definition: ParticleEffect2D.h:286
AnimatedModel(Context *context)
Construct.
Definition: AnimatedModel.cpp:70
int GetMaxWidth() const
Return minimum width.
Definition: UIElement.h:433
void SetDuration(float duration)
Set duration.
Definition: ParticleEffect2D.cpp:409
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix3x4.h:534
static const Matrix4 IDENTITY
Identity matrix.
Definition: Matrix4.h:735
bool operator>(const Pair< T, U > &rhs) const
Test for greater than with another pair.
Definition: Pair.h:61
SharedPtr< ConstantBuffer > constantBuffers_[MAX_SHADER_PARAMETER_GROUPS *2]
Constant buffers by binding index.
Definition: OGLShaderProgram.h:103
const Vector< SharedPtr< VertexBuffer > > & GetVertexBuffers() const
Return all vertex buffers.
Definition: Geometry.h:71
const T & Front() const
Return const first element.
Definition: List.h:408
UniquePtr< dtTileCacheMeshProcess > meshProcessor_
Mesh processor used by Detour, in this case a 'pass-through' processor.
Definition: DynamicNavigationMesh.h:140
void RemoveAnimationState(Animation *animation)
Remove an animation by animation pointer.
Definition: AnimatedModel.cpp:465
Matrix3x4 transforms_[2]
Transform matrices for position and billboard orientation.
Definition: BillboardSet.h:189
HashMap< WeakPtr< UIElement >, bool > hoveredElements_
Currently hovered elements.
Definition: UI.h:425
float GetRotation() const
Return rotation angle.
Definition: Sprite.h:92
unsigned GetLightMask() const
Return light mask.
Definition: Terrain.h:172
const IntRect & GetLayoutBorder() const
Return layout border.
Definition: UIElement.h:555
unsigned long long memoryUse_
Current memory use.
Definition: ResourceCache.h:56
btTypedConstraint * GetConstraint() const
Return Bullet constraint.
Definition: Constraint.h:104
void SetLevelsDirty()
Set the mipmap levels dirty flag. Called internally by Graphics.
Definition: Texture.cpp:234
2D vertex.
Definition: Drawable2D.h:37
bool SetFloat(const String &name, float value)
Set a float attribute.
Definition: XMLElement.cpp:352
Vector2 anchor_
Anchor.
Definition: ConstraintRevolute2D.h:86
void SetIntensitySortValue(float distance)
Set sort value based on intensity and view distance.
Definition: Light.cpp:566
virtual void Stop()
Cleanup after the main loop. Called by Application.
Definition: Application.h:50
ScriptFile * GetDefaultScriptFile() const
Return immediate mode script file.
Definition: Script.cpp:288
Iterator Insert(const T &key, bool &exists)
Insert a key. Return an iterator and set exists flag according to whether the key already existed.
Definition: HashSet.h:316
void SetUpdateMode(RenderSurfaceUpdateMode mode)
Set viewport update mode. Default is to update when visible.
Definition: RenderSurface.cpp:55
void SetEffectDepthBias(float bias)
Set effect Z bias.
Definition: Text3D.cpp:306
bool drawOffMeshConnections_
Debug draw OffMeshConnection components.
Definition: NavigationMesh.h:350
bool GetUseDrawRect() const
Return whether to use custom-defined draw rectangle.
Definition: StaticSprite2D.h:107
void DrawSolidPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a solid closed polygon provided in CCW order.
Definition: PhysicsWorld2D.cpp:201
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintPulley2D.cpp:49
void ClearDelayedExecute(const String &declaration=String::EMPTY)
Clear pending delay-executed function calls. If empty declaration given, clears all.
Definition: ScriptFile.cpp:508
String GetAttributeLower(const String &name) const
Return attribute in lowercase, or empty if missing.
Definition: XMLElement.cpp:716
Custom overrides of physics internals. To use overrides, must be set before the physics component is ...
Definition: PhysicsWorld.h:110
void SendServerUpdate()
Send scene update messages. Called by Network.
Definition: Connection.cpp:259
bool SetTextures(RenderPathCommand &command)
Set textures for current render command. Return whether depth write is allowed (depth-stencil not bou...
Definition: View.cpp:1800
bool Create() override
Create the GPU texture.
Definition: OGLTexture3D.cpp:340
unsigned char index_
Semantic index of element, for example multi-texcoords.
Definition: GraphicsDefs.h:216
unsigned size_
Size of vector.
Definition: VectorBase.h:64
unsigned GetNumColorFrames() const
Return number of color animation frames.
Definition: ParticleEffect.h:320
PODVector< GPUObject * > gpuObjects_
GPU objects.
Definition: Graphics.h:767
void SetRotation(const Matrix3 &rotation)
Set rotation elements from a 3x3 matrix.
Definition: Matrix3x4.h:512
void SetShadowMaxExtrusion(float extrusion)
Set maximum shadow extrusion for directional lights. The actual extrusion will be the smaller of this...
Definition: Light.cpp:353
const String & GetString() const
Return string or empty on type mismatch.
Definition: Variant.h:1197
void MarkDirty()
Mark node and child nodes to need world transform recalculation. Notify listener components.
Definition: Node.cpp:743
HashMap< StringHash, Texture * > renderTargets_
Rendertargets defined by the renderpath.
Definition: View.h:409
UniquePtr< btDiscreteDynamicsWorld > world_
Bullet physics world.
Definition: PhysicsWorld.h:312
@ LT_OBJECT_GROUP
Object group.
Definition: TileMapDefs2D.h:80
void SetMinRotation(float rotation)
Set particle minimum rotation.
Definition: ParticleEffect.cpp:560
ShaderVariation * pixelShader_
Pixel shader.
Definition: Batch.h:106
void SetActiveTime(float time)
Set emission active period length (0 = infinite).
Definition: ParticleEffect.cpp:510
bool HasTextureUnit(TextureUnit unit)
Check whether the current vertex or pixel shader uses a texture unit.
Definition: OGLGraphics.cpp:1467
void OnGetAttribute(const AttributeInfo &attr, Variant &dest) const override
Handle attribute read access.
Definition: LuaScriptInstance.cpp:208
void CleanupEventInvoker(asIScriptObject *object)
Clean up an event invoker object when its associated script object no longer exists.
Definition: ScriptFile.cpp:652
Octree * octree_
Octree to use.
Definition: View.h:318
IntVector2 dragBeginPosition_
Original position at drag begin.
Definition: Window.h:155
typename std::underlying_type< Enum >::type Integer
Integer type.
Definition: FlagSet.h:52
int GetMixRate() const
Return mixing rate.
Definition: Audio.h:75
const Vector2 & GetGravity() const
Return gravity.
Definition: PhysicsWorld2D.h:191
bool fixedHeightResizing_
Fixed height resize flag.
Definition: Window.h:147
dtTileCacheAlloc * alloc_
Allocator from DynamicNavigationMesh instance.
Definition: NavBuildData.h:116
HashMap< Camera *, ViewBatchInfo2D > viewBatchInfos_
View batch info.
Definition: Renderer2D.h:125
const VariantVector & GetNodeIDsAttr() const
Return node IDs attribute.
Definition: StaticModelGroup.cpp:355
bool interpolatable_
Interpolatable flag.
Definition: ValueAnimation.h:159
void SetMinRadiusVariance(float minRadiusVariance)
Set min radius variance.
Definition: ParticleEffect2D.cpp:434
WeakPtr(const SharedPtr< T > &rhs) noexcept
Construct from a shared pointer.
Definition: Ptr.h:306
SharedPtr< Script > script_
Script subsystem.
Definition: ScriptFile.h:132
void OnServerDisconnected(const SLNet::AddressOrGUID &address)
Handle server disconnection.
Definition: Network.cpp:1002
unsigned GetIndexSize() const
Return index size in bytes.
Definition: IndexBuffer.h:77
void RemoveAllItems()
Remove all items.
Definition: ListView.cpp:496
CrowdAgentTargetState previousTargetState_
Agent's previous target state used to check for state changes.
Definition: CrowdAgent.h:234
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: AnimatedModel.cpp:297
void SetMaxAccel(float maxAccel)
Set the agent's max acceleration.
Definition: CrowdAgent.cpp:379
Vector3(float x, float y, float z) noexcept
Construct from coordinates.
Definition: Vector3.h:223
Spriter animation set, it includes one or more animations, for more information please refer to http:...
Definition: AnimationSet2D.h:46
void Swap(ListBase &rhs)
Swap with another linked list.
Definition: ListBase.h:106
void ClearParameterSources()
Clear remembered shader parameter sources.
Definition: OGLGraphics.cpp:1478
void HandleOKPressed(StringHash eventType, VariantMap &eventData)
Handle OK button pressed.
Definition: FileSelector.cpp:442
float Angle(const Vector2 &rhs) const
Returns the angle between this vector and another vector in degrees.
Definition: Vector2.h:316
Component * GetOrCreateComponent(StringHash type, CreateMode mode=REPLICATED, unsigned id=0)
Create a component to this node if it does not exist already.
Definition: Node.cpp:933
void SetOtherBody(RigidBody2D *body)
Set other rigid body.
Definition: Constraint2D.cpp:118
void SetUBO(unsigned object)
Bind a UBO, avoiding redundant operation. Used only on OpenGL.
Definition: OGLGraphics.cpp:2537
SharedPtr< PropertySet2D > propertySet_
Property set.
Definition: TileMapDefs2D.h:161
Variant(const Variant &value)
Copy-construct from another variant.
Definition: Variant.h:548
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle post update.
Definition: LuaScript.cpp:466
void SetTargetRotation(const Quaternion &targetRotation)
Sets the current target rotation. If the effector has a target node then this will have no effect.
Definition: IKEffector.cpp:132
void SetVisible(bool visible)
Set visible.
Definition: TileMapLayer2D.cpp:235
ConstraintDistance2D(Context *context)
Construct.
Definition: ConstraintDistance2D.cpp:37
Vector4(const Vector3 &vector, float w) noexcept
Construct from a 3-dimensional vector and the W coordinate.
Definition: Vector4.h:47
int GetLayoutElementMaxSize() const
Return maximum layout element size in the layout direction. Only valid after layout has been calculat...
Definition: UIElement.h:619
void SetTransformSilent(const Vector3 &position, const Quaternion &rotation, const Vector3 &scale)
Set local transform silently without marking the node & child nodes dirty. Used by animation code.
Definition: Node.cpp:1894
IntRect GetViewport() const
Return the viewport coordinates.
Definition: Graphics.h:498
LuaScript * luaScript_
Lua Script subsystem.
Definition: LuaScriptInstance.h:171
Matrix3x4 view_
View transform matrix.
Definition: OcclusionBuffer.h:203
bool GetTripleBuffer() const
Return whether triple buffering is enabled.
Definition: Graphics.h:381
Folder.
Definition: SpriterData2D.h:72
IntVector2 delta_
Movement since last frame.
Definition: Input.h:69
const Color & GetEndColor() const
Get vertex blended color for end of trail.
Definition: RibbonTrail.h:140
bool HasProperty(const String &name) const
Return has property.
Definition: TileMapDefs2D.cpp:173
int multiSample_
Level of multisampling.
Definition: Graphics.h:97
void MixZeroVolume(Sound *sound, unsigned samples, int mixRate)
Advance playback pointer without producing audible output.
Definition: SoundSource.cpp:1234
bool SetVariantMap(const VariantMap &value)
Set a variant map attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:506
InstanceData()=default
Construct undefined.
bool GetUpdateInvisible() const
Return whether to update animation when not visible.
Definition: AnimatedModel.h:124
float GetAreaCost(unsigned queryFilterType, unsigned areaID) const
Get the cost of an area for the specified query filter type.
Definition: CrowdManager.cpp:501
unsigned Read(void *dest, unsigned size) override
Read bytes from the buffer. Return number of bytes actually read.
Definition: VectorBuffer.cpp:47
Tmx layer.
Definition: TmxFile2D.h:38
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: StaticSprite2D.h:144
b2PrismaticJointDef jointDef_
Box2D joint def.
Definition: ConstraintPrismatic2D.h:89
float GetDragBeginInterval() const
Return UI drag start event interval in seconds.
Definition: UI.h:179
WeakPtr< RigidBody > otherBody_
Other rigid body.
Definition: Constraint.h:175
void UpdateEventSubscription(bool checkAllDecals)
Subscribe/unsubscribe from scene post-update as necessary.
Definition: DecalSet.cpp:1122
const Color & GetFinishColor() const
Return finish color.
Definition: ParticleEffect2D.h:182
void RecalculateSegmentLengths()
Unusual, but if you have a tree with translational motions such that the distances between nodes chan...
Definition: IKSolver.cpp:387
const Matrix3x4 * worldTransform_
World transform(s). For a skinned model, these are the bone transforms.
Definition: Batch.h:92
static void RegisterObject(Context *context)
Register object factory.
Definition: MessageBox.cpp:109
bool sceneLoaded_
Scene loaded flag.
Definition: Connection.h:333
void SetMorphsAttr(const PODVector< unsigned char > &value)
Set morphs attribute.
Definition: AnimatedModel.cpp:856
RenderSurface * GetDepthStencil() const
Return current depth-stencil surface.
Definition: Graphics.h:495
float GetSizeMul() const
Return particle size multiplicative modifier.
Definition: ParticleEffect.h:314
bool Compare(const CustomVariantValue &rhs) const override
Compare to another custom value.
Definition: Variant.h:259
Texture2D * GetTexture() const
Return texture.
Definition: Sprite2D.h:65
bool IsRecursive() const
Return whether geometry is automatically collected from child nodes.
Definition: Navigable.h:47
float y_
Y coordinate.
Definition: Vector3.h:476
void SetStartBone(Bone *startBone)
Set start bone. Not supported in node animation mode. Resets any assigned per-bone weights.
Definition: AnimationState.cpp:105
bool RemoveSwap(const T &value)
Erase an element by value by swapping with the last element. Return true if was found and erased.
Definition: Vector.h:408
void SetPanning(float panning)
Set stereo panning. -1.0 is full left and 1.0 is full right.
Definition: SoundSource.cpp:302
bool SaveXML(Serializer &dest, int pointSize, bool usedGlyphs=false, const String &indentation="\t")
Save resource as a new bitmap font type in XML format. Return true if successful.
Definition: Font.cpp:114
~StaticModelGroup() override
Destruct.
void SetOwnerBodyGroundAnchor(const Vector2 &groundAnchor)
Set other body ground anchor point.
Definition: ConstraintPulley2D.cpp:64
UIBatch()
Construct with defaults.
Definition: UIBatch.cpp:36
Quaternion rotation_
Rotation.
Definition: Node.h:691
unsigned maxLayers_
Maximum number of layers that are allowed to be constructed.
Definition: DynamicNavigationMesh.h:144
RenderCommandSortMode sortMode_
Sorting mode.
Definition: RenderPath.h:142
void MixNull(float timeStep)
Advance playback pointer to simulate audio playback in headless mode.
Definition: SoundSource.cpp:1263
float GetRotationEndVariance() const
Return rotation end variance.
Definition: ParticleEffect2D.h:239
Vector3 lastSpacing_
Vertex and height sacing at the time of last update.
Definition: Terrain.h:269
Octant * children_[NUM_OCTANTS]
Child octants.
Definition: Octree.h:142
void SetLowLimit(const Vector2 &limit)
Set low limit. Interpretation is constraint type specific.
Definition: Constraint.cpp:292
Mutex logMutex_
Mutex for threaded operation.
Definition: Log.h:116
void SetLevel(int level)
Set logging level.
Definition: Log.cpp:117
const Vector3 & GetSize() const
Return shape size.
Definition: CollisionShape.h:224
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: RigidBody2D.cpp:565
void SetOwnerBodyAnchor(const Vector2 &anchor)
Set owner body anchor point.
Definition: ConstraintPulley2D.cpp:86
Sphere(const BoundingBox &box) noexcept
Construct from a bounding box.
Definition: Sphere.h:62
BatchGroupKey(const Batch &batch)
Construct from a batch.
Definition: Batch.h:184
void Release() override
Release the texture.
Definition: OGLTexture3D.cpp:69
void DefineVertex(const Vector3 &position)
Define a vertex position. This begins a new vertex.
Definition: CustomGeometry.cpp:541
float GetLength() const
Return animation length.
Definition: AnimationState.cpp:439
virtual void Start()
Called when the component is added to a scene node. Other components may not yet exist.
Definition: LogicComponent.h:62
SharedArrayPtr< unsigned char > data_
Index data.
Definition: Model.h:89
@ CATMULL_ROM_FULL_CURVE
Catmull-Rom full path interpolation. Start and end knots are duplicated or looped as necessary to mov...
Definition: Spline.h:45
EventProfilerBlock * GetChild(StringHash eventID)
Return child block with the specified event ID.
Definition: EventProfiler.h:42
void GetRawDataShared(SharedArrayPtr< unsigned char > &vertexData, unsigned &vertexSize, SharedArrayPtr< unsigned char > &indexData, unsigned &indexSize, const PODVector< VertexElement > *&elements) const
Return raw vertex and index data for CPU operations, or null pointers if not available....
Definition: Geometry.cpp:257
const String & GetString(const StringHash &hash) const
Return String for given StringHash. Return value is unsafe to use if RegisterString is called from ot...
Definition: StringHashRegister.cpp:102
bool Execute(const String &declaration, const VariantVector ¶meters=Variant::emptyVariantVector)
Query for a method by declaration and execute. Log an error if not found.
Definition: ScriptInstance.cpp:277
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector2.h:328
UIElement * GetItem(unsigned index) const
Return item at index.
Definition: ListView.cpp:833
unsigned otherBodyNodeID_
Other body node ID for pending constraint recreation.
Definition: Constraint.h:199
CubeMapFace GetOutputFace(unsigned index) const
Return output rendertarget face index.
Definition: RenderPath.cpp:304
bool operator==(const KeyValue &rhs) const
Test for equality with another pair.
Definition: HashMap.h:71
WeakArrayPtr()
Construct a null weak array pointer.
Definition: ArrayPtr.h:235
void SetFrequency(float frequency)
Set frequency.
Definition: SoundSource.cpp:284
unsigned southID_
Node ID of south neighbor.
Definition: Terrain.h:319
const String & GetDepthStencilName() const
Return depth-stencil output name.
Definition: RenderPath.h:135
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionPolygon2D.cpp:106
bool operator!=(const Pair< T, U > &rhs) const
Test for inequality with another pair.
Definition: Pair.h:48
rcHeightfieldLayerSet * heightFieldLayers_
Recast heightfield layer set.
Definition: NavBuildData.h:114
unsigned GetNumButtons() const
Return number of buttons.
Definition: Input.h:88
SharedPtr(const SharedPtr< U > &rhs) noexcept
Copy-construct from another shared pointer allowing implicit upcasting.
Definition: Ptr.h:66
bool IsString() const
Check is string.
Definition: JSONValue.h:185
float rotationSpeedMin_
Particle rotation speed minimum.
Definition: ParticleEffect.h:411
~TerrainPatch() override
Destruct.
unsigned GetNumGeometryLodLevels(unsigned index) const
Return number of LOD levels in geometry.
Definition: Model.cpp:736
bool Resize(int width, int height)
Resize image by bilinear resampling. Return true if successful.
Definition: Image.cpp:1158
int Right() const
Return right coordinate.
Definition: Rect.h:455
void SetLooped(bool enable)
Set loop on/off. If loop is enabled, sets the full sound as loop range.
Definition: Sound.cpp:253
UniquePtr< btDispatcher > collisionDispatcher_
Bullet collision dispatcher.
Definition: PhysicsWorld.h:306
bool usePhysicalValues_
Use physical light values flag.
Definition: Light.h:395
float animationLodDistance_
Animation LOD distance, the minimum of all LOD view distances last frame.
Definition: AnimatedModel.h:241
IntVector2 ConvertUIToSystem(const IntVector2 &uiPos) const
Convert scaled UI position (or offset) to system mouse position (or offset).
Definition: UI.cpp:857
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Color.h:253
unsigned numWorldTransforms_
Number of valid instance node transforms.
Definition: StaticModelGroup.h:92
float masterGain_
Effective master gain.
Definition: SoundSource.h:144
unsigned nextAsyncExecID_
Next async execution ID.
Definition: FileSystem.h:121
bool Null() const
Check if the pointer is null.
Definition: ArrayPtr.h:373
DropDownList * filterList_
Filter dropdown.
Definition: FileSelector.h:161
FaceCameraMode
Billboard camera facing modes.
Definition: GraphicsDefs.h:353
void BringToFront()
Bring UI element to front.
Definition: UIElement.cpp:1217
bool pivotSet_
Has pivot changed manually.
Definition: UIElement.h:789
void GetTileGeometry(NavBuildData *build, Vector< NavigationGeometryInfo > &geometryList, BoundingBox &box)
Get geometry data within a bounding box.
Definition: NavigationMesh.cpp:1085
bool SetFont(const String &fontName, float size=DEFAULT_FONT_SIZE)
Set font by looking from resource cache by name and font size. Return true if successful.
Definition: Text3D.cpp:188
String PrintMemoryUsage() const
Returns a formatted string containing the memory actively used.
Definition: ResourceCache.cpp:916
void AddRequiredPackageFile(PackageFile *package)
Add a required package file for networking. To be called on the server.
Definition: Scene.cpp:677
void SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor)
Set attenuation parameters.
Definition: SoundSource3D.cpp:104
XMLElement GetParent() const
Return parent element.
Definition: XMLElement.cpp:639
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: CollisionShape.cpp:494
void SetBuffer(const void *data, unsigned size)
Set buffer type from a memory area.
Definition: Variant.cpp:392
String GetAttribute(const String &name=String::EMPTY) const
Return attribute, or empty if missing.
Definition: XMLElement.cpp:693
void SetFixedRotation(bool fixedRotation)
Set fixed rotation.
Definition: RigidBody2D.cpp:232
void Reset(T *ptr=nullptr)
Reset with another pointer.
Definition: Ptr.h:167
float GetWorldRotation2D() const
Return rotation in world space (for Urho2D).
Definition: Node.h:432
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Window.cpp:84
void UpdateWorldTransform() const
Recalculate the world transform.
Definition: Node.cpp:2087
float Element(unsigned i, unsigned j) const
Return matrix element.
Definition: Matrix3.h:266
bool needUpdate_
Need update flag.
Definition: RibbonTrail.h:239
Matrix4 projection_
Projection matrix.
Definition: OcclusionBuffer.h:205
unsigned rawIndexSize_
Raw index data override size.
Definition: Geometry.h:141
void UnsubscribeFromAllEventsExcept(const PODVector< StringHash > &exceptions, bool onlyUserData)
Unsubscribe from all events except those listed, and optionally only those with userdata (script regi...
Definition: Object.cpp:268
const String & GetDownloadName() const
Return name of current package download, or empty if no downloads.
Definition: Connection.cpp:1131
float value_
Slider current value.
Definition: Slider.h:108
void CleanupLevels()
Clean up the mip levels.
Definition: Image.cpp:2310
void Reset()
Reset button, axis and hat states to neutral.
Definition: Input.cpp:339
~BatchGroup()=default
Destruct.
Spline()
Default constructor.
Definition: Spline.cpp:40
JSONValue(const JSONValue &value)
Copy-construct from another JSON value.
Definition: JSONValue.h:137
unsigned collisionMask_
Collision mask.
Definition: RigidBody.h:291
PODVector< float > debugVertexData_
UI rendering vertex data for debug draw.
Definition: UI.h:367
Vector3 Row(unsigned i) const
Return matrix row.
Definition: Matrix3.h:269
void SetCustomSize(const IntVector2 &size)
Set custom size of the root element. This disables automatic resizing of the root element according t...
Definition: UI.cpp:757
String GetMeshName() const
Return the given name of this navigation mesh.
Definition: NavigationMesh.h:192
Linked shader program on the GPU.
Definition: OGLShaderProgram.h:38
void SetEnableMotor(bool enableMotor)
Set enable motor.
Definition: ConstraintRevolute2D.cpp:116
Script(Context *context)
Construct.
Definition: Script.cpp:69
void AddCollisionShape(CollisionShape *shape)
Add a collision shape to keep track of. Called by CollisionShape.
Definition: PhysicsWorld.cpp:730
void MarkConstraintDirty()
Mark constraint dirty.
Definition: Constraint.h:166
T & operator[](int index)
Subscript the object if applicable.
Definition: Ptr.h:422
bool hierarchyMode_
Hierarchy mode flag.
Definition: ListView.h:176
void BroadcastMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer &msg, unsigned contentID=0)
Broadcast a message with content ID to all client connections.
Definition: Network.cpp:513
void RemoveCachedGeometry(Model *model)
Invalidate cached collision geometry for a model.
Definition: PhysicsWorld.cpp:614
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: AnimatedModel.cpp:137
String currentRow_
Current row being edited.
Definition: Console.h:164
float GetMotorSpeed() const
Return motor speed.
Definition: ConstraintRevolute2D.h:74
float projFarClip_
Cached actual far clip distance.
Definition: Camera.h:246
PODVector< float > debugVertexData_
UI rendering vertex data for debug draw.
Definition: UI.h:263
Terrain * GetNorthNeighbor() const
Return north neighbor terrain.
Definition: Terrain.h:145
bool GetSRGB() const
Return whether is using sRGB sampling and writing.
Definition: Texture.h:106
HashMap< StringHash, Vector< AttributeInfo > > networkAttributes_
Network replication attribute descriptions per object type.
Definition: Context.h:232
void SetBoneWeight(unsigned index, float weight, bool recursive=false)
Set per-bone blending weight by track index. Default is 1.0 (full), is multiplied with the state's bl...
Definition: AnimationState.cpp:205
Logging subsystem.
Definition: Log.h:73
void Update(float timeStep)
Update.
Definition: ParticleEmitter2D.cpp:311
const Vector< ModelMorph > & GetMorphs() const
Return vertex morphs.
Definition: Model.h:188
void AddListener(Component *component)
Add listener component that is notified of node being dirtied. Can either be in the same node or anot...
Definition: Node.cpp:1152
void SetSizeAdd(float sizeAdd)
Set particle size additive modifier.
Definition: ParticleEffect.cpp:581
StringVector names_
List of object names.
Definition: Variant.h:158
WeakPtr< Shader > lastShader_
Last used shader in shader variation query.
Definition: Graphics.h:855
~Slider() override
Destruct.
float GetWheelFrictionSlip(int wheel) const
Get wheel friction slip.
Definition: RaycastVehicle.cpp:515
List< SharedPtr< WorkItem > > poolItems_
Work item pool for reuse to cut down on allocation. The bool is a flag for item pooling and whether i...
Definition: WorkQueue.h:132
void SetApplyingTransforms(bool enable)
Set node dirtying to be disregarded.
Definition: PhysicsWorld2D.h:203
float Element(unsigned i, unsigned j) const
Return matrix element.
Definition: Matrix3x4.h:660
void SetOrthographic(bool enable)
Set orthographic mode enabled/disabled.
Definition: Camera.cpp:195
void Load(const XMLElement &element)
Load from XML element.
Definition: TileMapDefs2D.cpp:142
signed char * GetStart() const
Return sound data start.
Definition: Sound.h:73
int GetDrawOrder() const
Return draw order by layer and order in layer.
Definition: Drawable2D.h:109
bool vertexBuffersDirty_
Need vertex attribute pointer update flag.
Definition: OGLGraphicsImpl.h:158
unsigned GetNumQueuedResources() const
Return amount of resources in the load queue.
DebugLine()=default
Construct undefined.
HashMap< unsigned, Node * > replicatedNodes_
Replicated scene nodes by ID.
Definition: Scene.h:284
const SharedPtr< Resource > & FindResource(StringHash type, StringHash nameHash)
Find a resource.
Definition: ResourceCache.cpp:975
void Merge(const Vector3 &point)
Merge a point.
Definition: BoundingBox.h:176
void SetDrawPair(bool drawPair)
Set draw pair.
Definition: PhysicsWorld2D.cpp:372
bool SetUInt(const String &name, unsigned value)
Set an unsigned integer attribute.
Definition: XMLElement.cpp:362
Matrix3 ReadMatrix3()
Read a Matrix3.
Definition: Deserializer.cpp:212
void SetFriction(float friction)
Set friction.
Definition: CollisionShape2D.cpp:152
unsigned passIndex_
Pass index.
Definition: View.h:83
int x_
X coordinate.
Definition: Vector2.h:156
void SetOuterAngle(float angle)
Set outer angle in degrees. Outside this angle sound will be completely attenuated....
Definition: SoundSource3D.cpp:137
Object * GetEventSender() const
Return active event sender. Null outside event handling.
Definition: Context.cpp:374
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: AnimationSet2D.cpp:124
Button * okButton_
OK button element.
Definition: MessageBox.h:73
bool markedDirty_
Whether exists in the SceneState's dirty set.
Definition: ReplicationState.h:171
SharedPtr< Text > profilerText_
Profiling information text.
Definition: DebugHud.h:117
void SetText(const String &text)
Set text.
Definition: LineEdit.cpp:480
~Drawable2D() override
Destruct.
Definition: Drawable2D.cpp:54
bool SetVectorVariant(const String &name, const Variant &value)
Set a float, Vector or Matrix attribute stored in a variant.
Definition: XMLElement.cpp:538
bool IsEnabled() const
Return whether weight is nonzero.
Definition: AnimationState.h:127
Frustum frustum_
Cached world space frustum.
Definition: Camera.h:234
void RemoveAllTracks()
Remove all tracks. This is unsafe if the animation is currently used in playback.
Definition: Animation.cpp:326
void SetOrientation(Orientation orientation)
Set orientation type.
Definition: ProgressBar.cpp:76
void SetStopAtEnd(bool enable)
Set whether playback should stop when no more data. Default false.
Definition: SoundStream.cpp:52
void SortTextureFrames()
Sort the list of texture frames based on time.
Definition: ParticleEffect.cpp:728
ConstIterator & operator=(const Iterator &rhs)
Assign from a non-const iterator.
Definition: HashSet.h:131
Matrix3x4(const Matrix4 &matrix) noexcept
Copy-construct from a 4x4 matrix which is assumed to contain no projection.
Definition: Matrix3x4.h:83
void SetScale(const Vector3 &scale)
Set scaling elements.
Definition: Matrix3x4.h:526
bool operator==(Enum rhs) const
Equality check against enum value.
Definition: FlagSet.h:190
bool physicsStepping_
Whether is currently stepping the world. Used internally.
Definition: PhysicsWorld2D.h:238
PODVector< float > vertexData_
UI rendering vertex data.
Definition: UI.h:363
void SetOcclusionLodLevel(unsigned level)
Set occlusion LOD level. By default (M_MAX_UNSIGNED) same as visible.
Definition: StaticModel.cpp:296
void SetMaterial(Material *material)
Set material.
Definition: RibbonTrail.cpp:414
RaycastVehicleData * vehicleData_
Opaque Bullet data hidden from public.
Definition: RaycastVehicle.h:190
unsigned count_
Calls on current frame.
Definition: Profiler.h:146
void AddDrawable(Drawable2D *drawable)
Add Drawable2D.
Definition: Renderer2D.cpp:227
void Minimize()
Minimize the window.
Definition: Graphics.cpp:345
Cached character location and size within text. Used for queries related to text editing.
Definition: Text.h:47
BlendMode
Blending mode.
Definition: GraphicsDefs.h:70
void SetAppStats(const String &label, const Variant &stats)
Set application-specific stats.
Definition: DebugHud.cpp:280
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Zone.cpp:229
unsigned GetGid() const
Return gid.
Definition: TileMapDefs2D.h:138
void PrepareInstancingBuffer()
Prepare instancing buffer by filling it with all instance transforms.
Definition: View.cpp:2954
DecalVertex(const Vector3 &position, const Vector3 &normal)
Construct with position and normal.
Definition: DecalSet.h:43
Variant(const Matrix3 &value)
Construct from a Matrix3.
Definition: Variant.h:499
bool SetNumVertexBuffers(unsigned num)
Set number of vertex buffers.
Definition: Geometry.cpp:53
~DropDownList() override
Destruct.
HashMap< RigidBody *, DelayedWorldTransform > delayedWorldTransforms_
Delayed (parented) world transform assignments.
Definition: PhysicsWorld.h:326
~FileSystem() override
Destruct.
Definition: FileSystem.cpp:294
Batch()=default
Construct with defaults.
constexpr RandomAccessConstIterator(const T *ptr)
Construct with an object pointer.
Definition: Iter.h:136
void Dispose()
Dispose.
Definition: AnimatedSprite2D.cpp:496
String loadMaterialName_
Material name acquired during BeginLoad().
Definition: ParticleEffect.h:423
void SetSpecularLighting(bool enable)
Set specular lighting on/off.
Definition: Renderer.cpp:316
unsigned nodeSize_
Size of a node.
Definition: Allocator.h:43
const Vector< ColorFrame > & GetColorFrames() const
Return all color animation frames.
Definition: ParticleEffect.h:317
SharedPtr< Material > Clone(const String &cloneName=String::EMPTY) const
Clone the material.
Definition: Material.cpp:1146
bool initiated_
Download initiated flag.
Definition: Connection.h:84
PODVector< DebugLine > lines_
Lines rendered with depth test.
Definition: DebugRenderer.h:176
float GetFadeTime(const String &name) const
Return animation fade time.
Definition: AnimationController.cpp:547
float gain_
Gain.
Definition: SoundSource.h:138
LayoutMode
Layout operation mode.
Definition: UIElement.h:85
float GetShadowResolution() const
Return shadow resolution.
Definition: Light.h:280
bool ReadDeltaUpdate(Deserializer &source)
Read and apply a network delta update. Return true if attributes were changed.
Definition: Serializable.cpp:820
int agentCrowdId_
Crowd manager reference to this agent.
Definition: CrowdAgent.h:206
~Object() override
Destruct. Clean up self from event sender & receiver structures.
Definition: Object.cpp:83
String path_
Current directory.
Definition: FileSelector.h:179
Material technique. Consists of several passes.
Definition: Technique.h:190
void Draw(View *view, Camera *camera, bool allowDepthWrite) const
Prepare and draw.
Definition: Batch.cpp:636
ValueAnimation * GetAttributeAnimation(const String &name) const
Return attribute animation.
Definition: Animatable.cpp:428
Stretchable sprite component.
Definition: StretchableSprite2D.h:30
void LoadPassShaders(Pass *pass, Vector< SharedPtr< ShaderVariation > > &vertexShaders, Vector< SharedPtr< ShaderVariation > > &pixelShaders, const BatchQueue &queue)
Reload shaders for a material pass. The related batch queue is provided in case it has extra shader c...
Definition: Renderer.cpp:1639
unsigned GetHiresShadowMapFormat() const
Return 24-bit shadow map depth texture format, or 0 if not supported.
Definition: Graphics.h:414
static const Color BLACK
Opaque black color.
Definition: Color.h:269
SDL_Surface * GetSDLSurface(const IntRect &rect=IntRect::ZERO) const
Return an SDL surface from the image, or null if failed. Only RGB images are supported....
Definition: Image.cpp:2223
ShaderPrecache(Context *context, const String &fileName)
Construct and begin collecting shader combinations. Load existing combinations from XML if the file e...
Definition: ShaderPrecache.cpp:38
Vector3 GetLocalPoint(float theta, float phi) const
Return point on the sphere relative to sphere position.
Definition: Sphere.cpp:257
Allocator< T > & operator=(const Allocator< T > &rhs)=delete
Prevent assignment.
virtual bool IsZero() const
Compare to zero.
Definition: Variant.h:204
T value_
Node value.
Definition: List.h:48
bool SetStringVector(const StringVector &value)
Set a string vector attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:490
int AddAgentToCrowd(bool force=false)
Add agent into crowd.
Definition: CrowdAgent.cpp:270
Quaternion(const float *data) noexcept
Construct from a float array.
Definition: Quaternion.h:82
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: ParticleEffect.cpp:120
const SharedPtr< ConstantBuffer > * GetConstantBuffers() const
Return all constant buffers.
Definition: OGLShaderProgram.h:77
const String & GetTargetName() const
Retrieves the name of the target node. The node doesn't necessarily have to exist in the scene graph.
Definition: IKEffector.cpp:99
void RegenerateLevels()
Regenerate mipmap levels for a rendertarget after rendering and before sampling. Called internally by...
Definition: OGLTexture.cpp:335
File * SearchPackages(const String &name)
Search resource packages for file.
Definition: ResourceCache.cpp:1123
IntVector3() noexcept
Construct a zero vector.
Definition: Vector3.h:36
HorizontalAlignment GetTextAlignment() const
Return row alignment.
Definition: Text3D.cpp:413
~ShaderProgram() override
Destruct.
Definition: OGLShaderProgram.cpp:70
SharedPtr< Model > Clone(const String &cloneName=String::EMPTY) const
Clone the model. The geometry data is deep-copied and can be modified in the clone without affecting ...
Definition: Model.cpp:617
IntVector2 GetLayoutChildPosition(UIElement *child)
Get child element constant position in a layout.
Definition: UIElement.cpp:2185
Vector< RemoteEvent > remoteEvents_
Queued remote events.
Definition: Connection.h:315
Node * FindNode(const T &key, unsigned hashKey) const
Find a node from the buckets. Do not call if the buckets have not been allocated.
Definition: HashSet.h:525
void Clear(unsigned index)
Clear a bit.
Definition: ReplicationState.h:77
void SetHDRRendering(bool enable)
Set HDR rendering on/off.
Definition: Renderer.cpp:311
SharedPtr< TextureCube > indirectionCubeMap_
Indirection cube map for shadowed pointlights.
Definition: Renderer.h:498
Node * InstantiateXML(const XMLElement &source, const Vector3 &position, const Quaternion &rotation, CreateMode mode=REPLICATED)
Instantiate scene content from XML data. Return root node if successful.
Definition: Scene.cpp:551
Vector< SharedPtr< OcclusionBuffer > > occlusionBuffers_
Reusable occlusion buffers.
Definition: Renderer.h:502
bool EndLoadFromJSONFile()
End load from JSON file.
Definition: SpriteSheet2D.cpp:299
InstanceData(const Matrix3x4 *worldTransform, const void *instancingData, float distance)
Construct with transform, instancing data and distance.
Definition: Batch.h:118
Vector< SharedPtr< AnimationState > > animationStates_
Animation states.
Definition: AnimatedModel.h:219
ConstIterator()=default
Construct.
bool inWrite_
In write flag to prevent recursion.
Definition: Log.h:128
float GetFarClip() const
Return far clip distance. If a custom projection matrix is in use, is calculated from it instead of t...
Definition: Camera.cpp:276
const BoundingBox & GetBoundingBox() const
Return bounding box.
Definition: Model.h:152
PODVector< unsigned char > GetTileData(const IntVector2 &tile) const override
Return tile data.
Definition: DynamicNavigationMesh.cpp:541
Iterator & operator--()
Predecrement the pointer.
Definition: List.h:85
Vector template class for POD types. Does not call constructors or destructors and uses block move....
Definition: Vector.h:685
void SetWorldTransform2D(const Vector2 &position, float rotation)
Set both position and rotation in world space as an atomic operation (for Urho2D).
Definition: Node.h:222
InterpolationMode interpolationMode_
Interpolation mode.
Definition: Spline.h:121
const BoundingBox & GetBoundingBox() const
Return local space bounding box of the navigation mesh.
Definition: NavigationMesh.h:246
bool sRGB_
sRGB sampling and writing mode flag.
Definition: Texture.h:237
UniquePtr< TriangleMeshInterface > meshInterface_
Bullet triangle mesh interface.
Definition: CollisionShape.h:100
bool WriteUInt64(unsigned long long value)
Write a 64-bit unsigned integer.
Definition: Serializer.cpp:56
void SetListener(SoundListener *listener)
Set active sound listener for 3D sounds.
Definition: Audio.cpp:192
void SetGImpactMesh(Model *model, unsigned lodLevel=0, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a triangle mesh from Model. If you update a model's geometry and want to reapply the shape,...
Definition: CollisionShape.cpp:695
unsigned GetObstacleAvoidanceType() const
Get the agent's obstacle avoidance type.
Definition: CrowdAgent.h:166
bool IsTrigger() const
Return trigger.
Definition: CollisionShape2D.h:71
WeakPtr< XMLFile > file_
XML file.
Definition: XMLElement.h:307
bool UpdateToGPU()
Update the shadow data to the GPU buffer.
Definition: OGLIndexBuffer.cpp:257
int GetMonitorCount() const
Return the number of currently connected monitors.
Definition: Graphics.cpp:315
void SetFocusMode(FocusMode mode)
Set focus mode.
Definition: UIElement.cpp:924
const Vector2 & GetPoint(unsigned index) const
Return point at index (use for script).
Definition: TileMapDefs2D.cpp:195
~BorderImage() override
Destruct.
void SetEastNeighbor(Terrain *east)
Set east (positive X) neighbor terrain for seamless LOD changes across terrains.
Definition: Terrain.cpp:321
Three-dimensional axis-aligned bounding box.
Definition: BoundingBox.h:43
PassLightingMode GetLightingMode() const
Return pass lighting mode.
Definition: Technique.h:99
bool GetAutoUpdate() const
Return whether render target updates automatically.
Definition: View3D.h:65
Vector< SharedPtr< Viewport > > viewports_
Viewports.
Definition: RenderSurface.h:148
float minZ_
Current minimum view space depth.
Definition: Drawable.h:373
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: RibbonTrail.h:207
bool GetInternalEdge() const
Return whether Bullet's internal edge utility for trimesh collisions is enabled.
Definition: PhysicsWorld.h:230
IntVector2 lastPosition_
Last position in screen coordinates.
Definition: Input.h:67
SharedPtr< ParticleEffect > Clone(const String &cloneName=String::EMPTY) const
Clone the particle effect.
Definition: ParticleEffect.cpp:736
Vector2 target_
Target.
Definition: ConstraintMouse2D.h:71
void SetDecalsAttr(const PODVector< unsigned char > &value)
Set decals attribute.
Definition: DecalSet.cpp:524
UniquePtr(T *ptr)
Construct from pointer.
Definition: Ptr.h:574
unsigned SeekRelative(int delta)
Set position relative to current position. Return actual new position.
Definition: Deserializer.cpp:48
unsigned usedVertexAttributes_
Vertex attributes bitmask used by the current shader program.
Definition: OGLGraphicsImpl.h:120
void SetHighlightMode(HighlightMode mode)
Set selected items' highlight mode.
Definition: ListView.cpp:701
static const StringHash ZERO
Zero hash.
Definition: StringHash.h:108
AnimationBlendMode blendingMode_
Blending mode.
Definition: AnimationState.h:177
const String & GetURL() const
Return URL used in the request.
Definition: HttpRequest.h:65
virtual void OnDeviceLost()
Mark the GPU resource destroyed on graphics context destruction.
Definition: GPUObject.cpp:52
unsigned sortFrameNumber_
Frame number on which was last sorted.
Definition: BillboardSet.h:203
Element in an XML file.
Definition: XMLElement.h:49
HashMap< AttributeInfo *, unsigned > idAttributes_
Storage for unapplied node and component ID attributes.
Definition: ScriptInstance.h:206
static const IntVector2 UP
(0,1) vector.
Definition: Vector2.h:167
void FromRotationMatrix(const Matrix3 &matrix)
Define from a rotation matrix.
Definition: Quaternion.cpp:106
const BoundingBox & GetWorldBoundingBox() const
Return world-space bounding box.
Definition: Octree.h:76
void Update(const FrameInfo &frame) override
Update before octree reinsertion. Is called from a worker thread.
Definition: ParticleEmitter.cpp:101
float inAirRPM_
Revolutions per minute value for in-air motor wheels. FIXME: set this one per wheel.
Definition: RaycastVehicle.h:198
void Clear()
Clear to undefined state.
Definition: Rect.h:184
void * handle_
Thread handle.
Definition: Thread.h:72
bool GetStencilTest() const
Return whether stencil test is enabled.
Definition: Graphics.h:531
void SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
Set uncompressed sound data format.
Definition: Sound.cpp:245
void HandleMouseButtonUp(StringHash eventType, VariantMap &eventData)
Handle mouse button up event.
Definition: UI.cpp:1780
Iterator Insert(const Iterator &dest, const Vector< T > &vector)
Insert a vector by iterator.
Definition: Vector.h:317
int packedMessageLimit_
Outgoing packet size limit.
Definition: Connection.h:351
unsigned FindLast(const String &str, unsigned startPos=NPOS, bool caseSensitive=true) const
Return index to the last occurrence of a string, or NPOS if not found.
Definition: Str.cpp:668
asIScriptFunction * GetFunction(const String &declaration)
Return a function by declaration. Will be stored to a search cache so that further searches should be...
Definition: ScriptFile.cpp:606
Vector2 min_
Minimum vector.
Definition: Rect.h:259
Animatable * FindAttributeAnimationTarget(const String &name, String &outName) override
Find target of an attribute animation from object hierarchy by name.
Definition: UIElement.cpp:1890
float GetLowerTranslation() const
Return lower translation.
Definition: ConstraintPrismatic2D.h:70
~FileWatcher() override
Destruct.
Definition: FileWatcher.cpp:67
static void RegisterObject(Context *context)
Register object factory.
Definition: SoundListener.cpp:40
void SendBeginContactEvents()
Send begin contact events.
Definition: PhysicsWorld2D.cpp:723
const Matrix3x4 & GetView() const
Return view transform matrix.
Definition: OcclusionBuffer.h:129
void ClipVertices(const Vector4 &plane, Vector4 *vertices, bool *triangles, unsigned &numTriangles)
Clip vertices against a plane.
Definition: OcclusionBuffer.cpp:685
String packageCacheDir_
Package cache directory.
Definition: Network.h:174
unsigned Length() const
Return length.
Definition: Str.h:615
float GetRotatePerSecond() const
Return rotate per second.
Definition: ParticleEffect2D.h:221
void OnObjectAnimationRemoved(ObjectAnimation *objectAnimation)
Handle object animation removed.
Definition: Animatable.cpp:497
int depth_
Depth.
Definition: Image.h:220
virtual void OnGetAttribute(const AttributeInfo &attr, Variant &dest) const
Handle attribute read access. Default implementation reads the variable at offset,...
Definition: Serializable.cpp:178
float GetRowSpacing() const
Return row spacing.
Definition: Text3D.cpp:418
float shadowDistance_
Shadow distance.
Definition: Terrain.h:311
PODVector< Light * > vertexLights_
Per-vertex lights affecting this drawable.
Definition: Drawable.h:389
BoundingBox boundingBox_
Local-space bounding box.
Definition: DecalSet.h:95
void Validate()
Validate parameters.
Definition: Light.cpp:79
ProfilerBlock * parent_
Parent block.
Definition: Profiler.h:148
void Resize(unsigned newSize)
Resize the vector.
Definition: Vector.h:424
bool asyncLoading_
Asynchronous loading flag.
Definition: Scene.h:336
virtual void Stop()
Called when the component is detached from a scene node, usually on destruction. Note that you will n...
Definition: LogicComponent.h:68
float GetFrequency() const
Return frequency.
Definition: SoundSource.h:93
static const Vector4 ONE
(1,1,1) vector.
Definition: Vector4.h:236
float emitRadius_
Emit radius.
Definition: ParticleEmitter2D.h:66
float GetLodBias() const
Return LOD bias.
Definition: Terrain.h:166
RayQueryResult()
Construct with defaults.
Definition: OctreeQuery.h:188
bool IsDynamic() const
Return whether is dynamic.
Definition: IndexBuffer.h:68
BoundingBox GetWorldBoundingBox() const
Get the bounds of this navigation area in world space.
Definition: NavArea.cpp:68
unsigned ToUInt() const
Return color packed to a 32-bit integer, with R component in the lowest 8 bits. Components are clampe...
Definition: Color.cpp:34
bool ReadBool()
Read a bool.
Definition: Deserializer.cpp:119
void SetShadowFadeDistance(float distance)
Set shadow fade out start distance. Only has effect if shadow distance is also non-zero.
Definition: Light.cpp:386
Vector3 min_
Minimum vector.
Definition: BoundingBox.h:321
Root scene node, represents the whole scene.
Definition: Scene.h:87
Custom variant value type traits. Specialize the template to implement custom type behavior.
Definition: Variant.h:214
unsigned Size() const
Return number of elements.
Definition: List.h:417
const Vector3 & GetPosition() const
Return the observer position sent by the client for interest management.
Definition: Connection.h:189
Input state for a joystick.
Definition: Input.h:77
bool SaveJSON(JSONValue &dest) const
Save as XML data. Return true if successful.
Definition: ValueAnimation.cpp:187
static const IntVector2 DOWN
(0,-1) vector.
Definition: Vector2.h:169
const BoundingBox & GetCullingBox() const
Return bounding box used for fitting drawable objects.
Definition: Octree.h:79
void SetDefaultStyle(XMLFile *style)
Set UI elements' style from an XML file.
Definition: Console.cpp:120
~PackageFile() override
Destruct.
bool RemoveChildXML(XMLElement &parent, const String &name) const
Remove child XML element by matching attribute name.
Definition: UIElement.cpp:1945
void SetEndScale(float endScale)
Set vertex blended scale for end of trail.
Definition: RibbonTrail.cpp:325
void EnableLayoutUpdate()
Enable automatic layout update.
Definition: UIElement.cpp:1212
bool SetBuffer(const String &name, const void *data, unsigned size)
Set a buffer attribute.
Definition: XMLElement.cpp:332
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: CollisionShape.cpp:876
static Variant ParseShaderParameterValue(const String &value)
Parse a shader parameter value from a string. Retunrs either a bool, a float, or a 2 to 4-component v...
Definition: Material.cpp:1237
float vertexDistance_
Distance between points. Basically is tail length.
Definition: RibbonTrail.h:217
URHO_CPP14(constexpr) RandomAccessIterator< T > &operator++()
Preincrement the pointer.
Definition: Iter.h:52
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: CheckBox.cpp:82
SharedPtr< Texture2D > depthTexture_
Depth stencil texture.
Definition: View3D.h:87
void SendDragOrHoverEvent(StringHash eventType, UIElement *element, const IntVector2 &screenPos, const IntVector2 &deltaPos, UI::DragData *dragData)
Send a UI element drag or hover begin event.
Definition: UI.cpp:1664
Vector3 CrossProduct(const Vector3 &rhs) const
Calculate cross product.
Definition: Vector3.h:392
void Release() override
Release the shader.
Definition: OGLShaderVariation.cpp:60
asITypeInfo * GetObjectType(const char *declaration)
Query for an inbuilt object type by constant declaration. Can not be used for script types.
Definition: Script.cpp:303
void SetWorldPosition2D(const Vector2 &position)
Set position in world space (for Urho2D).
Definition: Node.h:188
void SetViewMask(unsigned mask)
Set view mask for patches. Is and'ed with camera's view mask to see if the object should be rendered.
Definition: Terrain.cpp:416
const HashMap< String, SharedPtr< ValueAnimationInfo > > & GetAttributeAnimationInfos() const
Return all attribute animations infos.
Definition: ObjectAnimation.h:78
SharedPtr() noexcept
Construct a null shared pointer.
Definition: Ptr.h:40
Vector3 GetWheelAxle(int wheel) const
Get wheel axle vector.
Definition: RaycastVehicle.cpp:643
Intersection IsInside(const Vector3 &point) const
Test if a point is inside or outside.
Definition: Frustum.h:83
void FromUInt(unsigned color)
Set RGBA values from packed 32-bit integer, with R component in the lowest 8 bits (format 0xAABBGGRR)...
Definition: Color.cpp:77
BodyType2D
Rigid body type.
Definition: RigidBody2D.h:39
void ReorderComponent(Component *component, unsigned index)
Adjust index order of an existing component in this node.
Definition: Node.cpp:1083
void SetDrawCenterOfMass(bool drawCenterOfMass)
Set draw center of mass.
Definition: PhysicsWorld2D.cpp:380
bool hasSimulated_
Internal flag whether has simulated at least once.
Definition: RigidBody.h:311
static unsigned globalFrameNumber
Global shader parameter source framenumber.
Definition: OGLShaderProgram.h:112
void SetEnabled(bool enable)
Set enabled/disabled state without recursion. Components in a disabled node become effectively disabl...
Definition: Node.cpp:715
void ReloadTextures()
Reload textures.
Definition: Renderer.cpp:1752
void Page(const IntVector2 &position, bool pressed)
Send slider page event.
Definition: Slider.cpp:277
int GetWidth() const
Return buffer width.
Definition: OcclusionBuffer.h:135
const TypeInfo * typeInfo_
Type info.
Definition: Object.h:228
HashIteratorBase()
Construct.
Definition: HashBase.h:61
Texture2D * GetDefaultLightRamp() const
Return the default range attenuation texture.
Definition: Renderer.h:367
TmxFile2D * GetTmxFile() const
Return tmx file.
Definition: TileMap2D.cpp:154
AnimationState * GetAnimationState(const String &name) const
Find an animation state by animation name.
Definition: AnimationController.cpp:571
SharedPtr< Image > loadImage_
Image file acquired during BeginLoad.
Definition: Texture3D.h:73
bool IsAllowSleep() const
Return allow sleep.
Definition: RigidBody2D.h:141
void LoadParameters()
Load optional parameters from an XML file.
Definition: Sound.cpp:341
T key_
Key.
Definition: HashSet.h:51
void SetFriction(float friction)
Set friction coefficient.
Definition: RigidBody.cpp:374
const Color & GetHoverColor() const
Return hover background color.
Definition: UISelectable.h:55
unsigned localNodeID_
Next free local node ID.
Definition: Scene.h:318
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: RigidBody.cpp:931
SharedArrayPtr< unsigned > indexData_
Index data.
Definition: CollisionShape.h:119
void SetTitle(const String &text)
Set title text.
Definition: FileSelector.cpp:182
void FromUIntMask(unsigned color, const ChannelMask &mask)
Set RGBA values from packed 32-bit integer with arbitrary channel mask.
Definition: Color.cpp:85
SharedPtr< Sound > streamBuffer_
Decode buffer.
Definition: SoundSource.h:191
void SetCoordinates(const IntVector2 &coordinates)
Set patch coordinates.
Definition: TerrainPatch.cpp:238
const Vector2 & GetCenter() const
Return center.
Definition: CollisionBox2D.h:58
void SetSplitImpulse(bool enable)
Set split impulse collision mode. This is more accurate, but slower. Disabled by default.
Definition: PhysicsWorld.cpp:358
Vector3 initialScale_
Reset scale.
Definition: Skeleton.h:70
bool LoadCharGlyph(unsigned charCode, Image *image=nullptr)
Load char glyph.
Definition: FontFaceFreeType.cpp:410
void UpdateBoneBoundingBox()
Recalculate the bone bounding box. Normally called internally, but can also be manually called if up-...
Definition: AnimatedModel.cpp:906
float GetParticleLifespanVariance() const
Return particle lifespan variance.
Definition: ParticleEffect2D.h:152
float GetLength() const
Get the length of SplinePath.
Definition: SplinePath.h:82
Spline spline_
The Control Points of the Spline.
Definition: SplinePath.h:126
Abstract base class for invoking attribute accessors.
Definition: Attribute.h:62
SharedPtr< Text > text_
Text element.
Definition: LineEdit.h:130
void SetRestitution(float restitution)
Set restitution .
Definition: CollisionShape2D.cpp:178
void UpdateParameters(unsigned scope=M_MAX_UNSIGNED)
Update Detour crowd agent parameter.
Definition: CrowdAgent.cpp:190
String pixelShaderDefineExcludes_
Pixel shader define excludes.
Definition: Technique.h:176
unsigned GetComponents() const
Return number of color components.
Definition: Image.h:168
void SetVisible(bool enable)
Show or hide.
Definition: Console.cpp:141
Vector< WeakPtr< RigidBody2D > > rigidBodies_
Rigid bodies.
Definition: PhysicsWorld2D.h:242
float time_
Time.
Definition: ValueAnimation.h:51
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: Slider.cpp:209
IntVector2 ScreenToElement(const IntVector2 &screenPosition) override
Convert screen coordinates to element coordinates.
Definition: Sprite.cpp:96
bool GetSpecularLighting() const
Return whether specular lighting is enabled.
Definition: Renderer.h:271
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: RibbonTrail.h:205
void Swap(UniquePtr &up)
Swap with another UniquePtr.
Definition: Ptr.h:632
GImpactMeshData(Model *model, unsigned lodLevel)
Construct from a model.
Definition: CollisionShape.cpp:217
const IntRect & GetClipBorder() const
Return child element clipping border.
Definition: UIElement.h:475
void DrawTriangle(Vector4 *vertices, unsigned threadIndex)
Draw a triangle.
Definition: OcclusionBuffer.cpp:589
Vector< Vector< SharedPtr< Geometry > > > geometries_
All geometries.
Definition: StaticModel.h:119
float GetAngleVariance() const
Return angle variance.
Definition: ParticleEffect2D.h:158
void GetFloatMinMax(const XMLElement &element, float &minValue, float &maxValue)
Read a float range from an XML element.
Definition: ParticleEffect.cpp:821
int GetOcclusionBufferSize() const
Return occlusion buffer width.
Definition: Renderer.h:325
void SetVertices(const PODVector< Vector2 > &vertices)
Set vertices.
Definition: CollisionChain2D.cpp:87
IndexBuffer * GetIndexBuffer() const
Return current index buffer.
Definition: Graphics.h:467
virtual const IntVector2 & GetScreenPosition() const
Update and return screen position.
Definition: UIElement.cpp:395
void SetSphere(float diameter, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a sphere.
Definition: CollisionShape.cpp:587
RenderCommandType type_
Command type.
Definition: RenderPath.h:140
VariantAttributeAccessorImpl(TGetFunction getFunction, TSetFunction setFunction)
Construct.
Definition: Serializable.h:157
String animationName_
Animation name.
Definition: Animation.h:193
PODVector< ScenePassInfo > scenePasses_
Info for scene render passes defined by the renderpath.
Definition: View.h:413
void Reset()
Reset.
Definition: PListFile.cpp:276
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: StringHash.h:99
bool forceUpdate_
Force update flag (ignore animation LOD momentarily).
Definition: BillboardSet.h:195
bool InitializeResourceCache(const VariantMap ¶meters, bool removeOld=true)
Reinitialize resource cache subsystem using parameters given. Implicitly called by Initialize....
Definition: Engine.cpp:321
PacketType
Packet types for outgoing buffers. Outgoing messages are grouped by their type.
Definition: Connection.h:110
bool GetMaximized() const
Returns true if window is maximized or runs in full screen mode.
Definition: Graphics.cpp:325
Texture(Context *context)
Construct.
Definition: Texture.cpp:58
virtual ~Thread()
Destruct. If running, stop and wait for thread to finish.
Definition: Thread.cpp:69
float sizeDelta_
Size delta.
Definition: ParticleEmitter2D.h:44
PassLightingMode
Lighting mode of a pass.
Definition: Technique.h:36
SharedPtr< BorderImage > knob_
Slider knob.
Definition: Slider.h:102
void SetScriptNetworkDataAttr(const PODVector< unsigned char > &data)
Set script network serialization attribute by calling a script function.
Definition: LuaScriptInstance.cpp:448
unsigned GetComponents() const
Return number of image components required to receive pixel data from GetData(), or 0 for compressed ...
Definition: Texture.cpp:163
virtual unsigned GetChecksum()
Return a checksum if applicable.
Definition: Deserializer.cpp:58
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: Node.cpp:194
bool enableMassUpdate_
Mass update enable flag.
Definition: RigidBody.h:309
void SetControls(const Controls &newControls)
Set new controls.
Definition: Connection.cpp:225
const String & GetGUID() const
Get local server GUID.
Definition: Network.h:74
float GetRange() const
Return range.
Definition: Light.h:253
2D gear constraint component.
Definition: ConstraintGear2D.h:31
SharedPtr< Texture > shapeTexture_
Spotlight attenuation texture.
Definition: Light.h:367
void SetStencilTest(bool enable, CompareMode mode=CMP_ALWAYS, StencilOp pass=OP_KEEP, StencilOp fail=OP_KEEP, StencilOp zFail=OP_KEEP, unsigned stencilRef=0, unsigned compareMask=M_MAX_UNSIGNED, unsigned writeMask=M_MAX_UNSIGNED)
Set stencil test.
Definition: OGLGraphics.cpp:1989
PhysicsWorld * GetPhysicsWorld() const
Return physics world.
Definition: CollisionShape.h:218
bool SaveXML(XMLElement &dest) const
Save as XML data. Return true if successful.
Definition: ObjectAnimation.cpp:112
Vector3 constantForce_
Particle constant force.
Definition: ParticleEffect.h:383
Color selectionColor_
Selection background color.
Definition: UISelectable.h:59
void SetCustomMaterialAttr(const ResourceRef &value)
Set custom material attribute.
Definition: StaticSprite2D.cpp:260
~UIElement() override
Destruct.
Definition: UIElement.cpp:102
void ReleaseConstraint()
Release the constraint.
Definition: Constraint.cpp:347
float emitParticleTime_
Emit particle time.
Definition: ParticleEmitter2D.h:155
static void RegisterObject(Context *context)
Register object factory.
Definition: TerrainPatch.cpp:68
bool watchSubDirs_
Watch subdirectories flag.
Definition: FileWatcher.h:79
unsigned usedVertexAttributes_
Used vertex attribute location bitmask.
Definition: OGLShaderProgram.h:101
unsigned layoutNestingLevel_
Layout update nesting level to prevent endless loop.
Definition: UIElement.h:730
Node * ReserveNode()
Reserve a node.
Definition: HashMap.h:742
XMLElement CreateChild(const String &name)
Create a child element.
Definition: XMLElement.cpp:94
static Vector< Vector3 > GetCircleShape(float radius=1, size_t iterations=100, float startTheta=0, float endTheta=2 *M_PI)
Geometry Shape Helper Functions (normal defaults to (0,1,0)
Definition: CustomGeometry.cpp:207
bool Seek(unsigned sample_number) override
Seek to sample number. Return true on success.
Definition: OggVorbisSoundStream.cpp:62
static const IntVector3 LEFT
(-1,0,0) vector.
Definition: Vector3.h:168
bool HasProperty(const String &name) const
Return has property.
Definition: TileMapDefs2D.cpp:149
volatile signed char * GetPlayPosition() const
Return playback position.
Definition: SoundSource.h:84
float updateAcc_
Update time accumulator.
Definition: Network.h:172
void SetDetailSampleMaxError(float error)
Set detail sampling maximum error.
Definition: NavigationMesh.cpp:311
WeakPtr< ShaderVariation > pixelShader_
Pixel shader.
Definition: OGLShaderProgram.h:93
T * RegisterSubsystem()
Template version of registering subsystem.
Definition: Context.h:256
const Vector2 & GetGravity() const
Return gravity.
Definition: ParticleEffect2D.h:161
bool PopulateInterpreter()
Populate the command line interpreters that could handle the console command.
Definition: Console.cpp:310
void SetQueryFilterType(unsigned queryFilterType)
Set the agent's query filter type.
Definition: CrowdAgent.cpp:419
void BuildDepthHierarchy()
Build reduced size mip levels.
Definition: OcclusionBuffer.cpp:234
~Image() override
Destruct.
bool alphaToCoverage_
Alpha-to-coverage mode.
Definition: Technique.h:162
Vector2 GetLinearVelocity() const
Return linear velocity.
Definition: RigidBody2D.cpp:538
void SetLayer(int layer)
Set layer.
Definition: Drawable2D.cpp:77
const String & GetTitle() const
Return title text. Return empty string if there is no title text element.
Definition: MessageBox.cpp:126
float GetDistanceToWall(const Vector3 &point, float radius, int queryFilterType, Vector3 *hitPos=nullptr, Vector3 *hitNormal=nullptr)
Return distance to wall from a point using the crowd initialized query extent (based on maxAgentRadiu...
Definition: CrowdManager.cpp:428
static Sint64 Seek(SDL_RWops *context, Sint64 offset, int whence)
Seek within the object's data.
Definition: RWOpsWrapper.h:61
unsigned totalResources_
Total resources.
Definition: Scene.h:79
int GetPriority() const
Return zone priority.
Definition: Zone.h:100
void AddComponent(Component *component, unsigned id, CreateMode mode)
Add a pre-created component. Using this function from application code is discouraged,...
Definition: Node.cpp:1824
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: TextureCube.cpp:238
Utility class for collecting used shader combinations during runtime for precaching.
Definition: ShaderPrecache.h:36
Vector< SharedPtr< Texture2D > > textures_
Glyph texture pages.
Definition: FontFace.h:110
void NodeTagRemoved(Node *node, const String &tag)
Cache node by tag if tag not zero.
Definition: Scene.cpp:974
unsigned numQueryFilterTypes_
Number of query filter types configured in the crowd. Limit to DT_CROWD_MAX_QUERY_FILTER_TYPE.
Definition: CrowdManager.h:193
bool WheelIsGrounded(int wheel) const
True if wheel touches ground (raycast hits something).
Definition: RaycastVehicle.cpp:685
ik_node_t * CreateIKNodeFromUrhoNode(const Node *node)
Creates the ik library node and sets the current rotation/position and user data correctly.
Definition: IKSolver.cpp:219
bool IsChildOf(Node *node) const
Return whether is a direct or indirect child of specified node.
Definition: Node.cpp:1383
unsigned shadersLoadedFrameNumber_
Last shaders loaded frame number.
Definition: Technique.h:158
PODVector< Billboard > & GetBillboards()
Return all billboards.
Definition: BillboardSet.h:110
CompareMode depthTestMode_
Depth compare mode.
Definition: Technique.h:154
CullMode GetShadowCullMode() const
Return culling mode for shadows.
Definition: Material.h:226
const HashMap< StringHash, SharedPtr< Object > > & GetSubsystems() const
Return all subsystems.
Definition: Context.h:146
const ResourceRef & GetResourceRef() const
Return a resource reference or empty on type mismatch.
Definition: Variant.h:1220
void SortChildren()
Sort child elements if sorting enabled and order dirty. Called by UI.
Definition: UIElement.cpp:1788
void SetScale(float scale)
Set UI scale. 1.0 is default (pixel perfect). Resize the root element to match.
Definition: UI.cpp:739
bool IsOccluder() const
Return occluder flag.
Definition: Terrain.h:190
static unsigned litAlphaPassIndex
Index for lit alpha pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:272
Texture * currentViewportTexture_
Texture containing the latest viewport texture.
Definition: View.h:342
void DrawFullscreenQuad(bool setIdentityProjection=false)
Draw a fullscreen quad. Shaders and renderstates must have been set beforehand. Quad will be drawn to...
Definition: View.cpp:2139
float GetEngineForce(int wheel) const
Get engine force for the wheel.
Definition: RaycastVehicle.cpp:575
unsigned indexSize_
Index size.
Definition: Model.h:85
int Width() const
Return width.
Definition: Rect.h:403
~ResourceCache() override
Destruct. Free all resources.
Definition: ResourceCache.cpp:90
unsigned GetNumTechniques() const
Return number of techniques.
Definition: Material.h:188
StringHash GetType() const override
Return type of the stored component.
Definition: UnknownComponent.h:41
int max_
Maximum value.
Definition: OcclusionBuffer.h:50
bool SaveByteCode(Serializer &dest)
Save the script bytecode. Return true if successful.
Definition: ScriptFile.cpp:594
Geometry * geometry_
Geometry.
Definition: Batch.h:88
float GetBasePriority() const
Return base priority.
Definition: NetworkPriority.h:53
void SetBackupTexture(Texture *texture)
Set backup texture to use when rendering to this texture.
Definition: Texture.cpp:104
float sortDistance_
Distance for sorting.
Definition: RibbonTrail.h:61
float GetFov() const
Return vertical field of view in degrees.
Definition: Camera.h:116
NavBuildData()
Constructor.
Definition: NavBuildData.cpp:33
float GetZoom() const
Return zoom.
Definition: Camera.h:125
void AddDelayedWorldTransform(const DelayedWorldTransform &transform)
Add a delayed world transform assignment. Called by RigidBody.
Definition: PhysicsWorld.cpp:750
void SetLightingMode(PassLightingMode mode)
Set pass lighting mode, affects what shader variations will be attempted to be loaded.
Definition: Technique.cpp:114
void SetSenderAndEventType(Object *sender, StringHash eventType)
Set sender and event type.
Definition: Object.h:262
TextEffect GetTextEffect() const
Return text effect.
Definition: Text3D.cpp:428
float cellHeight_
Cell height.
Definition: NavigationMesh.h:316
bool GetRemoveOnCompletion(const String &name) const
Return whether animation auto-removes on completion, or false if no such animation.
Definition: AnimationController.cpp:563
XMLFile * GetDefaultStyle(bool recursiveUp=true) const
Return default style.
Definition: UIElement.cpp:1579
Package file send transfer.
Definition: Connection.h:88
bool highDPI_
Definition: Graphics.h:91
Tile map information.
Definition: TileMapDefs2D.h:49
void SetZoneMask(unsigned mask)
Set zone mask for patches. Is and'ed with zone's zone mask to see if the object should belong to the ...
Definition: Terrain.cpp:452
SharedArrayPtr< unsigned char > readBuffer_
Read buffer for the main thread.
Definition: HttpRequest.h:101
UniquePtr< b2World > world_
Box2D physics world.
Definition: PhysicsWorld2D.h:220
void FillShape(const Vector< Vector3 > &shapeList, bool connectTail=true, bool clear=true, int geomNum=0)
Fills a point List shape with triangles.
Definition: CustomGeometry.cpp:302
~ParticleEffect2D() override
Destruct.
float angle_
Angle.
Definition: CollisionBox2D.h:76
Free type font face description.
Definition: FontFaceFreeType.h:34
ConstIterator End() const
Return const iterator to the end.
Definition: Str.h:388
void DoResize(unsigned newSize)
Resize the vector and create/remove new elements as necessary.
Definition: Vector.h:582
Vector3 GetPoint(float factor) const
Get a point on the SplinePath from 0.f to 1.f where 0 is the start and 1 is the end.
Definition: SplinePath.cpp:217
bool LoadAndExecute(lua_State *luaState)
Load buffer as chunk and execute. Return true if successful.
Definition: LuaFile.cpp:115
float maxAccel_
Agent's max acceleration.
Definition: CrowdAgent.h:216
void RemoveKeyFrame(unsigned index)
Remove a keyframe at index.
Definition: Animation.cpp:77
float GetRoundTripTime() const
Return the connection's round trip time in milliseconds.
Definition: Connection.cpp:1073
bool deferredAmbient_
Deferred ambient pass flag. This means that the destination rendertarget is being written to at the s...
Definition: View.h:376
int top_
Top coordinate.
Definition: Rect.h:463
void AddCircle(const Vector3 ¢er, const Vector3 &normal, float radius, const Color &color, int steps=64, bool depthTest=true)
Add a circle.
Definition: DebugRenderer.cpp:439
Window * GetWindow() const
Return fileselector window.
Definition: FileSelector.h:84
bool GetAlphaToCoverage() const
Return alpha-to-coverage mode.
Definition: Technique.h:108
void SetWeight(float weight)
Set blending weight.
Definition: AnimationState.cpp:165
bool LoadXML(const XMLElement &source)
Load from XML data. Return true if successful.
Definition: ObjectAnimation.cpp:78
float simulatedPacketLoss_
Simulated packet loss probability between 0.0 - 1.0.
Definition: Network.h:168
void OnRemoveFromOctree() override
Handle removal from octree.
Definition: Zone.cpp:320
bool IsDelayedStartCalled() const
Return whether the DelayedStart() function has been called.
Definition: LogicComponent.h:86
const String & GetName() const
Return name.
Definition: UIElement.h:406
Vector2 scaledOffset_
Point size scaled position adjustment for glyphs.
Definition: Font.h:107
HorizontalAlignment
UI element horizontal alignment.
Definition: UIElement.h:37
String GetStringCopy(const StringHash &hash) const
Return string for given StringHash. Return empty string if not found.
Definition: StringHashRegister.cpp:76
bool GetData(unsigned level, void *dest) const
Get data from a mip level. The destination buffer must be big enough. Return true if successful.
Definition: OGLTexture3D.cpp:298
~HashMap()
Destruct.
Definition: HashMap.h:250
void SetLinearDamping(float damping)
Set linear velocity damping factor.
Definition: RigidBody.cpp:327
void OnWindowMoved()
Window was moved through user interaction. Called by Input subsystem.
Definition: OGLGraphics.cpp:2251
void Clear()
Clear the spline.
Definition: Spline.h:108
unsigned lodLevel_
Model LOD level.
Definition: CollisionShape.h:310
const String & GetSourceCode(ShaderType type) const
Return either vertex or pixel shader source code.
Definition: Shader.h:57
PODVector(const PODVector< T > &vector)
Construct from another vector.
Definition: Vector.h:717
float GetFloat() const
Return float or zero on type mismatch. Ints and doubles are converted.
Definition: Variant.h:1149
void SetSelections(const PODVector< unsigned > &indices)
Set multiple selected items. If multiselect disabled, sets only the first.
Definition: ListView.cpp:517
StringHash nameHash_
Name hash.
Definition: Resource.h:104
~ParticleEmitter() override
Destruct.
UI element that can be toggled between unchecked and checked state.
Definition: CheckBox.h:31
void ClientDisconnected(const SLNet::AddressOrGUID &connection)
Handle a client disconnection.
Definition: Network.cpp:323
void SetAlpha(float alpha)
Set alpha.
Definition: StaticSprite2D.cpp:167
Vector< Vector2 > points_
Points(for polygon and polyline).
Definition: TileMapDefs2D.h:220
Color color_
Color.
Definition: BillboardSet.h:47
CollisionPolygon2D(Context *context)
Construct.
Definition: CollisionPolygon2D.cpp:38
SharedPtr< LuaFile > scriptFile_
Script file.
Definition: LuaScriptInstance.h:177
Vector< SharedPtr< PackageFile > > packages_
Package files.
Definition: ResourceCache.h:240
void GetComponents(PODVector< Component * > &dest, StringHash type) const
Return components in the same scene node by type.
Definition: Component.cpp:275
void SendPackages()
Send package files to client. Called by network.
Definition: Connection.cpp:351
ColorFrame(const Color &color, float time)
Construct from a color and time.
Definition: ParticleEffect.h:60
ShaderType
Shader types.
Definition: GraphicsDefs.h:300
float pressure_
Finger pressure.
Definition: Input.h:71
unsigned lockStart_
Lock start vertex.
Definition: IndexBuffer.h:107
static const Rect POSITIVE
Rect in the range (0, 0) - (1, 1).
Definition: Rect.h:266
UIComponent(Context *context)
Construct.
Definition: UIComponent.cpp:150
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLTexture2D.cpp:42
Vector3 ProjectOntoPlane(const Vector3 &origin, const Vector3 &normal) const
Project position vector onto plane with given origin and normal.
Definition: Vector3.h:363
HashMap< StringHash, SharedPtr< Object > > subsystems_
Subsystems.
Definition: Context.h:228
void SetTextureAttr(const ResourceRef &value)
Set texture attribute.
Definition: Sprite.cpp:290
bool GetDrawJoint() const
Return draw joint.
Definition: PhysicsWorld2D.h:168
void WriteFloat(XMLElement &element, const String &name, float value) const
Write float.
Definition: ParticleEffect2D.cpp:548
bool HasFocus() const
Return whether has focus.
Definition: UIElement.cpp:1541
void SetSprite(Sprite2D *sprite)
Set sprite.
Definition: StaticSprite2D.cpp:84
int GetWidth() const
Return width.
Definition: Image.h:159
String guid_
Local server GUID.
Definition: Network.h:192
An HTTP connection with response data stream.
Definition: HttpRequest.h:46
int maxOccluderTriangles_
Maximum occluder triangles.
Definition: Renderer.h:562
const Vector< SharedPtr< Node > > & GetChildren() const
Return immediate child scene nodes.
Definition: Node.h:512
~AnimationState() override
Destruct.
float GetAsyncProgress() const
Return asynchronous loading progress between 0.0 and 1.0, or 1.0 if not in progress.
Definition: Scene.cpp:747
IntVector2 modalFrameSize_
Modal frame size, used when modal flag is set.
Definition: Window.h:167
void SetScaledGlyphOffset(const Vector2 &offset)
Set point size scaled position adjustment for glyphs.
Definition: Font.cpp:134
bool endPointDirty_
Endpoint changed flag.
Definition: OffMeshConnection.h:86
bool IsTiled() const
Return whether is tiled.
Definition: BorderImage.h:97
const XPathResultSet * xpathResultSet_
XPath query result set.
Definition: XMLElement.h:311
void DrawDebugGeometry(bool depthTest)
Draw debug geometry.
Definition: CrowdAgent.cpp:164
void * ptr_
Attribute data pointer if elsewhere than in the Serializable.
Definition: Attribute.h:116
BlendMode GetBlendMode() const
Return blend mode.
Definition: ParticleEmitter2D.h:108
static bool CompareNodes(Node *&lhs, Node *&rhs)
Compare two nodes.
Definition: HashMap.h:777
void HandleRenderSurfaceUpdate(StringHash eventType, VariantMap &eventData)
Handle render surface update event. Queue the texture for update in case the View3D is visible and au...
Definition: View3D.cpp:172
Vector< ContactInfo > endContactInfos_
End contact infos.
Definition: PhysicsWorld2D.h:280
void AddToOctree()
Add to octree.
Definition: Drawable.cpp:385
Four-dimensional vector.
Definition: Vector4.h:31
Vector< AnimationStateTrack > stateTracks_
Per-track data.
Definition: AnimationState.h:167
Vector2 scale_
Scale.
Definition: Sprite.h:116
void ResetLodLevels()
Reset LOD levels.
Definition: StaticModel.cpp:405
Material rendering pass, which defines shaders and render state.
Definition: Technique.h:44
HashMap< const void *, SharedPtr< LuaFunction > > functionPointerToFunctionMap_
Function pointer to function map.
Definition: LuaScript.h:127
void SetExecuteConsoleCommands(bool enable)
Set whether to execute engine console commands as OS-specific system command.
Definition: FileSystem.cpp:361
unsigned char renderOrder_
8-bit render order modifier from material.
Definition: Batch.h:205
void SetAttributeAnimation(const String &name, ValueAnimation *attributeAnimation, WrapMode wrapMode=WM_LOOP, float speed=1.0f)
Set attribute animation.
Definition: Animatable.cpp:320
static void ClearParameterSources()
Clear all parameter sources from all shader programs by incrementing the global parameter source fram...
Definition: OGLShaderProgram.cpp:403
A convex volume built from polygon faces.
Definition: Polyhedron.h:37
EventHandler * Clone() const override
Return a unique copy of the event handler.
Definition: Object.h:348
void GetChildrenWithComponentRecursive(PODVector< Node * > &dest, StringHash type) const
Return child nodes with a specific component recursively.
Definition: Node.cpp:2146
CullMode GetCullMode() const
Return culling mode.
Definition: OcclusionBuffer.h:147
bool morphsDirty_
Vertex morphs dirty flag.
Definition: AnimatedModel.h:249
float EvaluateToFloat(const XMLElement &element) const
Evaluate XPath query and expecting a float return value.
Definition: XMLElement.cpp:1171
void SetFov(float fov)
Set spotlight field of view.
Definition: Light.cpp:333
SharedArrayPtr< int > clipBuffer_
Clipping buffer for mixing.
Definition: Audio.h:127
unsigned GetNumLayers() const
Return number of layers.
Definition: TileMap2D.h:62
void Disconnect(int waitMSec=0)
Disconnect the connection to the server. If wait time is non-zero, will block while waiting for disco...
Definition: Network.cpp:412
unsigned resolveSrcFBO_
Read frame buffer for multisampled texture resolves.
Definition: OGLGraphicsImpl.h:132
float GetMaxRadius() const
Return max radius.
Definition: ParticleEffect2D.h:209
const PODVector< Node * > & GetDependencyNodes() const
Return the depended on nodes to order network updates.
Definition: Node.h:607
PODVector< bool > buttonPress_
Button pressed on this frame.
Definition: Input.h:121
float animationLodTimer_
Animation LOD timer.
Definition: BillboardSet.h:160
void SetData(const void *data, unsigned dataSize)
Set uncompressed sound data.
Definition: Sound.cpp:236
Vector3 center_
Geometry center.
Definition: StaticModel.h:36
void SetTransform(const Vector3 &position, const Quaternion &rotation)
Set offset transform.
Definition: CollisionShape.cpp:769
bool useHotSpot_
Use hot spot flag.
Definition: StaticSprite2D.h:156
bool usingTouchInput_
Touch used flag.
Definition: UI.h:395
void SetZoneTexture(Texture *texture)
Set zone texture. This will be bound to the zone texture unit when rendering objects inside the zone....
Definition: Zone.cpp:154
unsigned activeOccluders_
Number of active occluders.
Definition: View.h:404
asIScriptModule * scriptModule_
Script module.
Definition: ScriptFile.h:134
~StringHashRegister()
Destruct.
Definition: StringHashRegister.cpp:43
bool SetStyleAuto(XMLFile *file=nullptr)
Set style from an XML file. Find the style element automatically by using the element's typename....
Definition: UIElement.cpp:1034
void UpdateSourceBatches() override
Update source batches.
Definition: StretchableSprite2D.cpp:150
void SetMaxAgents(unsigned maxAgents)
Set the maximum number of agents.
Definition: CrowdManager.cpp:236
bool Save(Serializer &dest) const override
Save as binary data. Return true if successful.
Definition: Node.cpp:115
void RemoveEventHandler(const String &eventName) override
Remove a scripted event handler.
Definition: LuaScript.cpp:192
void ProtrudeShape(const Vector< Vector3 > &mShapeList, const Vector< Vector3 > &mPointList, bool connectTail=false)
Definition: CustomGeometry.cpp:374
void SetCollideConnected(bool collideConnected)
Set collide connected.
Definition: Constraint2D.cpp:132
Value animation key frame.
Definition: ValueAnimation.h:48
UniquePtr()
Construct empty.
Definition: Ptr.h:571
AnimationTriggerPoint()
Construct.
Definition: Animation.h:105
@ CATMULL_ROM_CURVE
Catmull-Rom interpolation. The first and last knots control velocity and are not included on the path...
Definition: Spline.h:41
void RemoveUnusedBuffers()
Remove unused occlusion and screen buffers.
Definition: Renderer.cpp:1533
void SetColor(const Color &color)
Set color.
Definition: StaticSprite2D.cpp:157
String GetResourceFileName(const String &name) const
Return full absolute file name of resource if possible, or empty if not found.
Definition: ResourceCache.cpp:785
float GetLength() const
Return area tube light length. Works only with PBR shaders.
Definition: Light.h:232
void OnDrawOrderChanged() override
Handle draw order changed.
Definition: StaticSprite2D.cpp:290
void AddLine(const Vector3 &start, const Vector3 &end, const Color &color, bool depthTest=true)
Add a line.
Definition: DebugRenderer.cpp:87
HashMap< unsigned, PODVector< unsigned char > > componentLatestData_
Pending latest data for not yet received components.
Definition: Connection.h:309
bool SaveXML(XMLElement &dest) const
Save as XML data. Return true if successful.
Definition: ValueAnimation.cpp:125
bool isMaster_
Master model flag.
Definition: AnimatedModel.h:255
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLTexture2DArray.cpp:46
const Quaternion & GetQuaternion() const
Return quaternion or identity on type mismatch.
Definition: Variant.h:1188
HashMap< StringHash, PackageUpload > uploads_
Ongoing package send transfers.
Definition: Connection.h:305
void Reset()
Reset to null and release the weak reference.
Definition: ArrayPtr.h:346
float particleLifeSpan_
Particle lifespan.
Definition: ParticleEffect2D.h:268
void SetMinWidth(int width)
Set minimum width.
Definition: UIElement.cpp:615
nanodbc::result resultImpl_
The underlying implementation connection object.
Definition: ODBCResult.h:64
void SetMotorSpeed(float motorSpeed)
Set motor speed.
Definition: ConstraintWheel2D.cpp:114
float GetRandomRotationSpeed() const
Return random rotationspeed.
Definition: ParticleEffect.cpp:811
static void RegisterObject(Context *context)
Register object factory.
Definition: JSONFile.cpp:52
bool GetWarmStarting() const
Return warm starting.
Definition: PhysicsWorld2D.cpp:685
bool GetUseDerivedOpacity() const
Return whether parent elements' opacity affects opacity.
Definition: UIElement.h:502
virtual bool Save(Serializer &dest) const
Save resource. Return true if successful.
Definition: Resource.cpp:81
int GetWidth() const
Return width.
Definition: Texture.h:82
Vector2 floatPosition_
Floating point position.
Definition: Sprite.h:112
bool updateInvisible_
Update when invisible flag.
Definition: RibbonTrail.h:249
Controls()
Construct.
Definition: Controls.cpp:30
TimelineKey * GetTimelineKey(Ref *ref) const
Get timeline key by ref.
Definition: SpriterInstance2D.cpp:260
String vertexShaderDefines_
Vertex shader defines.
Definition: RenderPath.h:154
float width_
Width on screen.
Definition: FontFace.h:48
void RaycastSingle(RayOctreeQuery &query) const
Return the closest drawable object by a ray query.
Definition: Octree.cpp:510
static void RegisterObject(Context *context)
Register object factory.
Definition: Camera.cpp:83
void SetWorldScale2D(const Vector2 &scale)
Set scale in world space (for Urho2D).
Definition: Node.h:207
String & AppendWithFormatArgs(const char *formatString, va_list args)
Append to string using variable arguments.
Definition: Str.cpp:1087
float speed_
Speed.
Definition: ParticleEffect2D.h:264
void SetVBO(unsigned object)
Bind a VBO, avoiding redundant operation. Used only on OpenGL.
Definition: OGLGraphics.cpp:2527
Model(Context *context)
Construct.
Definition: Model.cpp:63
bool GetAutoExit() const
Return whether to exit automatically on exit request.
Definition: Engine.h:97
void SetPlayPositionLockless(signed char *pos)
Set new playback position without locking the audio mutex. Called internally.
Definition: SoundSource.cpp:586
WeakPtr< UIElement > touchedElement_
Last touched UI element from screen joystick.
Definition: Input.h:73
PListValueMap root_
Root dictionary.
Definition: PListFile.h:169
int GetMaxInactiveFps() const
Return the maximum frames per second when the application does not have input focus.
Definition: Engine.h:88
void Raycast(PODVector< PhysicsRaycastResult2D > &results, const Vector2 &startPoint, const Vector2 &endPoint, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world raycast and return all hits.
Definition: PhysicsWorld2D.cpp:497
int priority_
Priority.
Definition: UIElement.h:690
float traveled_
The fraction of the SplinePath covered.
Definition: SplinePath.h:132
XPathResultSet()
Construct empty result set.
Definition: XMLElement.cpp:1003
void MakeSquare(float size)
Makes this custom geometry into a square shape.
Definition: CustomGeometry.cpp:485
Variant CatmullRomInterpolation(const Vector< Variant > &knots, float t) const
Perform Spline interpolation on the spline.
Definition: Spline.cpp:191
void ApplyShaderDefines(unsigned index=M_MAX_UNSIGNED)
Reapply shader defines to technique index. By default reapply all.
Definition: Material.cpp:1366
ResourceRefList GetResourceRefList() const
Return a resource reference list attribute, or empty if missing.
Definition: XMLElement.cpp:887
Connection * GetConnection(const SLNet::AddressOrGUID &connection) const
Return a client or server connection by RakNet connection address, or null if none exist.
Definition: Network.cpp:654
void BindDepthAttachment(unsigned object, bool isRenderBuffer)
Bind a framebuffer depth attachment using either extension or core functionality. Used only on OpenGL...
Definition: OGLGraphics.cpp:3310
void SetTitle(const String &text)
Set title text. No-ops if there is no title text element.
Definition: MessageBox.cpp:114
void SetTextAttr(const String &value)
Set text attribute.
Definition: Text3D.cpp:551
@ ASYNC_QUEUED
Queued for asynchronous loading.
Definition: Resource.h:44
void SetDefaultTextureFilterMode(TextureFilterMode mode)
Set default texture filtering mode. Called by Renderer before rendering.
Definition: OGLGraphics.cpp:1581
virtual String ToString() const
Convert custom value to string.
Definition: Variant.h:206
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: Terrain.cpp:838
void StaticCast(const SharedPtr< U > &rhs)
Perform a static cast from a shared pointer of another type.
Definition: Ptr.h:188
Quaternion worldRotation_
World-space rotation.
Definition: Node.h:695
void SetNumOutputs(unsigned num)
Set number of output rendertargets.
Definition: RenderPath.cpp:252
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:62
const FontGlyph * GetGlyph(unsigned c) override
Return pointer to the glyph structure corresponding to a character. Return null if glyph not found.
Definition: FontFaceFreeType.cpp:308
String GetCurrentDir() const
Return the absolute current working directory.
Definition: FileSystem.cpp:535
Per-user scene network replication state.
Definition: ReplicationState.h:175
Trail is consisting of series of tails. Two connected points make a tail.
Definition: RibbonTrail.h:42
VertexElement() noexcept
Default-construct.
Definition: GraphicsDefs.h:186
Geometry * GetMaxLodGeometry() const
Return max LOD geometry. Used for decals.
Definition: TerrainPatch.cpp:253
ManifoldPair()
Construct with defaults.
Definition: PhysicsWorld.h:97
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: ListView.cpp:315
void SetMinOffset(const IntVector2 &offset)
Set offset of element's top left from the minimum anchor in pixels. No effect when anchor is not enab...
Definition: UIElement.cpp:749
WeakPtr< Scene > defaultScene_
Immediate execution scene.
Definition: Script.h:135
bool IsHovering() const
Return whether the cursor is hovering on this element.
Definition: UIElement.h:529
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: BillboardSet.cpp:180
void PurgeCompleted(unsigned priority)
Purge completed work items which have at least the specified priority, and send completion events as ...
Definition: WorkQueue.cpp:342
XMLFile * GetDefaultStyle() const
Return the UI style file.
Definition: Console.cpp:285
Quaternion(const Matrix3 &matrix) noexcept
Construct from a rotation matrix.
Definition: Quaternion.h:132
int right_
Right coordinate.
Definition: Rect.h:465
static const Matrix3x4 IDENTITY
Identity matrix.
Definition: Matrix3x4.h:711
void Reset()
Reset to initial state.
Definition: Controls.cpp:39
void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag motion.
Definition: Window.cpp:146
VertexBuffer * vertexBuffers_[MAX_VERTEX_STREAMS]
Vertex buffers in use.
Definition: Graphics.h:777
VariantType valueType_
Value type.
Definition: ValueAnimation.h:157
TSetFunction setFunction_
Set functor.
Definition: Serializable.h:179
bool IsEmpty() const
Return true when the variant is empty (i.e. not initialized yet).
Definition: Variant.h:1339
void SetProjection(const Matrix4 &projection)
Set custom projection matrix, which should be specified in D3D convention with depth range 0 - 1....
Definition: Camera.cpp:252
Allocator memory block.
Definition: Allocator.h:40
float GetTimePosition() const
Return playback time position.
Definition: SoundSource.h:90
bool RemoveTag(const String &tag)
Remove tag. Return true if existed.
Definition: Node.cpp:391
Base class for texture resources.
Definition: Texture.h:39
SharedPtr< Engine > engine_
Urho3D engine.
Definition: Application.h:62
float time_
Time.
Definition: ParticleEffect.h:82
unsigned GetIntFrequency() const
Return default frequency as an integer.
Definition: Sound.h:94
void LoadMultipleLanguageJSON(const JSONValue &source)
Load strings from JSONValue.
Definition: Localization.cpp:169
void SetMaxMotorTorque(float maxMotorTorque)
Set max motor torque.
Definition: ConstraintWheel2D.cpp:99
void SetSortChildren(bool enable)
Set whether should sort child elements according to priority. Default true.
Definition: UIElement.cpp:874
bool IsNaN() const
Return whether any element is NaN.
Definition: Quaternion.h:419
const Vector4 & GetVector4() const
Return Vector4 or zero on type mismatch.
Definition: Variant.h:1185
Vector3(const float *data) noexcept
Construct from a float array.
Definition: Vector3.h:239
static const Matrix2 IDENTITY
Identity matrix.
Definition: Matrix2.h:255
@ AM_NODEIDVECTOR
Attribute is a node ID vector where first element is the amount of nodes.
Definition: Attribute.h:53
const PODVector< unsigned char > & GetByteCode() const
Return shader bytecode. Stored persistently on Direct3D11 only.
Definition: ShaderVariation.h:126
PODVector< Billboard > billboards_
Billboards.
Definition: BillboardSet.h:156
bool TryAcquire()
Try to acquire the mutex without locking. Return true if successful.
Definition: Mutex.cpp:94
RenderPath * GetRenderPath() const
Return rendering path.
Definition: Viewport.cpp:137
void * event_
Operating system specific event.
Definition: Condition.h:56
UIElement * GetElementEventSender() const
Get element which should send child added / removed events.
Definition: UIElement.cpp:1853
void SetDrawDistance(float distance)
Set draw distance for patches.
Definition: Terrain.cpp:380
bool GetClearSelectionOnDefocus() const
Return whether selection is cleared on defocus.
Definition: ListView.h:147
bool ReloadResource(Resource *resource)
Reload a resource. Return true on success. The resource will not be removed from the cache in case of...
Definition: ResourceCache.cpp:372
void SetMaxSize(const IntVector2 &maxSize)
Set maximum size.
Definition: UIElement.cpp:625
int GetIndentWidth() const
Return indent width in pixels.
Definition: UIElement.h:628
Navigation mesh component. Collects the navigation geometry from child nodes with the Navigable compo...
Definition: NavigationMesh.h:92
bool batchedParameterUpdate_
Flag to suppress parameter hash and memory use recalculation when setting multiple shader parameters ...
Definition: Material.h:321
bool WriteDouble(double value)
Write a double.
Definition: Serializer.cpp:86
SharedPtr< Image > loadImage_
Image file acquired during BeginLoad.
Definition: Texture2D.h:90
T * operator->() const
Point to the node value.
Definition: List.h:100
void Join(const Vector< String > &subStrings, const String &glue)
Join substrings with a 'glue' string.
Definition: Str.cpp:566
void Raycast(PODVector< PhysicsRaycastResult > &result, const Ray &ray, float maxDistance, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world raycast and return all hits.
Definition: PhysicsWorld.cpp:372
Vector< String > filters_
Filters.
Definition: FileSelector.h:181
unsigned short GetIncludeFlags(unsigned queryFilterType) const
Get the include flags for the specified query filter type.
Definition: CrowdManager.cpp:483
Matrix3 RotationMatrix() const
Return the rotation matrix that corresponds to this quaternion.
Definition: Quaternion.cpp:234
static unsigned litBasePassIndex
Index for lit base pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:270
~WeakArrayPtr()
Destruct. Release the weak reference to the array.
Definition: ArrayPtr.h:258
float GetWeight() const
How strongly the effector affects the solution.
Definition: IKEffector.cpp:169
@ LM_VERTICAL
Layout child elements vertically and resize them to fit. Resize element if necessary.
Definition: UIElement.h:92
Hash set/map node base class.
Definition: HashBase.h:39
SharedPtr< Geometry > geometry_
Geometry.
Definition: TerrainPatch.h:118
unsigned short setTime_
Set time command.
Definition: AnimationController.h:72
HashSet & operator+=(const T &rhs)
Add-assign a value.
Definition: HashSet.h:238
void DelayedExecute(float delay, bool repeat, const String &declaration, const VariantVector ¶meters=Variant::emptyVariantVector)
Add a delay-executed method call, optionally repeating.
Definition: ScriptInstance.cpp:300
void SetColor(const Color &color)
Set color on all corners.
Definition: Text3D.cpp:321
void SetSplineTension(float tension)
Set spline tension, should be between 0.0f and 1.0f, but this is not a must.
Definition: ValueAnimation.cpp:268
bool ProcessSource(String &code, Deserializer &source)
Process source code and include files. Return true if successful.
Definition: Shader.cpp:160
bool sourceBatchesDirty_
Source batches dirty flag.
Definition: Drawable2D.h:118
PODVector< Light * > lights_
Lights.
Definition: View.h:402
AnimatedSprite2D(Context *context)
Construct.
Definition: AnimatedSprite2D.cpp:55
VariantMap identity_
Client identify for NAT punchtrough connections.
Definition: Network.h:182
unsigned loadedNodes_
Loaded root-level nodes.
Definition: Scene.h:81
XMLElement xmlElement_
Current XML element for XML mode.
Definition: Scene.h:67
Camera * camera_
Viewport (rendering) camera.
Definition: View.h:320
IntVector2 GetNumTiles() const
Return number of tiles.
Definition: NavigationMesh.h:252
PODVector< T > operator+(const T &rhs) const
Add an element.
Definition: Vector.h:762
void Validate()
Validate parameters.
Definition: Light.cpp:86
WindowDragMode dragMode_
Current drag mode.
Definition: Window.h:151
void SetMaxRadiusVariance(float maxRadiusVariance)
Set max radius variance.
Definition: ParticleEffect2D.cpp:424
unsigned char adaptiveDivs
adaptive
Definition: CrowdManager.h:53
void SetGBufferShaderParameters(const IntVector2 &texSize, const IntRect &viewRect)
Set G-buffer offset and inverse size shader parameters. Called by Batch and internally by View.
Definition: View.cpp:770
void SetPauseMinimized(bool enable)
Set whether to pause update events and audio when minimized.
Definition: Engine.cpp:578
Sprite2D * GetSprite() const
Return sprite.
Definition: StaticSprite2D.cpp:237
SharedArrayPtr< unsigned char > inputBuffer_
Decompression input buffer for compressed file loading.
Definition: File.h:133
virtual void FixedPostUpdate(float timeStep)
Called on physics post-update, fixed timestep.
Definition: LogicComponent.cpp:63
ConstIterator End() const
Return iterator to the end.
Definition: List.h:402
VertexElementType
Arbitrary vertex declaration element datatypes.
Definition: GraphicsDefs.h:155
const IntVector2 & GetNumPatches() const
Return heightmap size in patches.
Definition: Terrain.h:114
~CrowdManager() override
Destruct.
Definition: CrowdManager.cpp:88
Color(unsigned color, const ChannelMask &mask=ABGR)
Construct from 32-bit integer. Default format is 0xAABBGGRR.
Definition: Color.h:102
float weight_
Blending weight.
Definition: AnimationState.h:65
int GetNumWheels() const
Get number of attached wheels.
Definition: RaycastVehicle.cpp:595
float duration_
Duration.
Definition: ParticleEffect2D.h:304
SharedPtr< Texture > zoneTexture_
Zone texture.
Definition: Zone.h:166
void Clear()
Clear by removing all variables and XPath query object.
Definition: XMLElement.cpp:1154
bool GetUseGravity() const
Return whether rigid body uses gravity.
Definition: RigidBody.h:202
Queue for shadow map draw calls.
Definition: Batch.h:277
void RemoveEventReceiver(Object *receiver, Object *sender, StringHash eventType)
Remove event receiver from specific events.
Definition: Context.cpp:447
void Clear()
Remove all elements.
Definition: LinkedList.h:80
bool GetOptimizeBufferSize() const
Return whether is optimizing GPU buffer sizes according to current amount of decals.
Definition: DecalSet.h:164
virtual UpdateGeometryType GetUpdateGeometryType()
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: Drawable.h:138
PODVector< DebugTriangle > triangles_
Triangles rendered with depth test.
Definition: DebugRenderer.h:180
SDL_RWops ops_
SDL RWOps structure associated with the object.
Definition: RWOpsWrapper.h:117
SharedPtr< IndexBuffer > indexBuffer_
Shared index buffer.
Definition: Terrain.h:245
void ResetTarget()
Reset any target request for the specified agent. Note that the agent will continue to move into the ...
Definition: CrowdAgent.cpp:358
WeakPtr< TileMap2D > tileMap_
Tile map.
Definition: TileMapLayer2D.h:113
void SetTexture(Texture2D *texture)
Set texture.
Definition: SpriteSheet2D.cpp:91
bool uiRendered_
Flag for UI already being rendered this frame.
Definition: UI.h:413
bool GetDynamicInstancing() const
Return whether dynamic instancing is in use.
Definition: Renderer.h:310
bool assignBonesPending_
Bone nodes assignment pending flag.
Definition: DecalSet.h:249
EventHandler * FindSpecificEventHandler(Object *sender, EventHandler **previous=nullptr) const
Find the first event handler with specific sender.
Definition: Object.cpp:479
float GetMinRadius() const
Return min radius.
Definition: ParticleEffect2D.h:215
const RenderPathCommand * passCommand_
Pointer to the current commmand if it contains shader parameters to be set for a render pass.
Definition: View.h:437
unsigned char setWeightRev_
Set weight command revision.
Definition: AnimationController.h:78
void SetName(const String &name)
Change the file name. Used by the resource system.
Definition: File.cpp:414
SharedPtr< Image > heightMap_
Heightmap image.
Definition: Terrain.h:247
void ApplyMorph(VertexBuffer *buffer, void *destVertexData, unsigned morphRangeStart, const VertexBufferMorph &morph, float weight)
Apply a vertex morph.
Definition: AnimatedModel.cpp:1386
unsigned fragmentSize_
Clip buffer size in samples.
Definition: Audio.h:135
void SetMaxTorque(float maxTorque)
Set max torque.
Definition: ConstraintFriction2D.cpp:84
bool osShapeDirty_
OS cursor shape needs update flag.
Definition: Cursor.h:144
Manifold pointers stored during collision processing.
Definition: PhysicsWorld.h:94
float blendWeights_[4]
Blend weights.
Definition: DecalSet.h:70
void SetDragBeginDistance(int pixels)
Set UI drag event start distance threshold in pixels.
Definition: UI.cpp:654
@ OT_POLYLINE
Polyline.
Definition: TileMapDefs2D.h:97
T Max(T lhs, U rhs)
Return the larger of two values.
Definition: MathDefs.h:87
unsigned char drawableFlags_
Drawable flags to include.
Definition: OctreeQuery.h:67
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle frame begin event.
Definition: UI.cpp:2039
unsigned litAlphaPassIndex_
Index of the litalpha pass.
Definition: View.h:431
void AddRef()
Add a weak reference to the array pointed to.
Definition: ArrayPtr.h:398
String GetValue() const
Return inner value, or empty if missing for nodes like <node>value</node>.
Definition: XMLElement.cpp:684
float ProjectOntoAxis(const Vector3 &axis) const
Project vector onto axis.
Definition: Vector4.h:180
void CreateInstancingBuffer()
Create instancing vertex buffer.
Definition: Renderer.cpp:1879
ConstIterator & operator--()
Predecrement the pointer.
Definition: List.h:147
void SetEmitterType(EmitterType type)
Set emitter type.
Definition: ParticleEffect.cpp:480
Vector2 size_
Two-dimensional size. If BillboardSet has fixed screen size enabled, this is measured in pixels inste...
Definition: BillboardSet.h:43
Network subsystem. Manages client-server communications using the UDP protocol.
Definition: Network.h:38
StringVector tags_
Tag strings.
Definition: Node.h:67
void Merge(const BoundingBox &box)
Merge another bounding box.
Definition: BoundingBox.h:199
virtual void OnIndentSet()
React to indent change.
Definition: UIElement.h:201
static StringHashRegister * GetGlobalStringHashRegister()
Get global StringHashRegister. Use for debug purposes only. Return nullptr if URHO3D_HASH_DEBUG is of...
Definition: StringHash.cpp:84
void CalculateBoundingBox()
Recalculate the local-space bounding box.
Definition: DecalSet.cpp:1002
float GetSnapThreshold() const
Return motion smoothing snap threshold.
Definition: Scene.h:205
void SetFogHeight(float height)
Set fog height distance relative to the scene node's world position. Effective only in height fog mod...
Definition: Zone.cpp:136
String name_
Shader name.
Definition: ShaderVariation.h:170
JSONArray * arrayValue_
Array value.
Definition: JSONValue.h:305
T * head_
First element.
Definition: LinkedList.h:191
void SetTargetPosition(const Vector3 &targetPosition)
Sets the current target position. If the effector has a target node then this will have no effect.
Definition: IKEffector.cpp:118
DebugHud(Context *context)
Construct.
Definition: DebugHud.cpp:62
float GetPanning() const
Return stereo panning.
Definition: SoundSource.h:102
unsigned NumBuckets() const
Return number of buckets.
Definition: HashBase.h:130
SharedArrayPtr< float > heightData_
Height data.
Definition: Terrain.h:249
bool GetLightPrepassSupport() const
Return whether light pre-pass rendering is supported.
Definition: Graphics.h:420
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix2.h:147
IntVector2 disabledOffset_
Offset to image rectangle when disabled.
Definition: BorderImage.h:127
unsigned GetNumHats() const
Return number of hats.
Definition: Input.h:94
bool sendEvent_
Whether to send event on completion.
Definition: WorkQueue.h:59
unsigned vertexStart_
Vertex data start index.
Definition: UIBatch.h:89
Node * Tail() const
Return the tail node.
Definition: List.h:427
bool GetWordwrap() const
Return wordwrap mode.
Definition: Text3D.cpp:423
float margin_
Collision margin.
Definition: CollisionShape.h:314
Material * GetMaterial() const
Return material which will be used for rendering UI texture.
Definition: UIComponent.cpp:188
void SetAnisotropy(unsigned level)
Set texture max. anisotropy level. No effect if not using anisotropic filtering. Value 0 (default) us...
Definition: Texture.cpp:86
unsigned GetNumDragElements() const
Return the number of currently dragged elements.
Definition: UI.h:165
Vector2 gravity_
Gravity.
Definition: PhysicsWorld2D.h:222
Quaternion lastRotation_
Last interpolated rotation from the simulation.
Definition: RigidBody.h:297
Vector< PerThreadSceneResult > sceneResults_
Per-thread geometries, lights and Z range collection results.
Definition: View.h:390
String lastUsedFilter_
Filter used to get the file list.
Definition: FileSelector.h:185
Zone * GetZone() const
Return current zone.
Definition: Drawable.h:254
bool IsPlaying() const
Return whether is playing.
Definition: SoundSource.cpp:314
Matrix2 Scaled(const Vector2 &scale) const
Return scaled by a vector.
Definition: Matrix2.h:174
CullMode cullMode_
Normal culling mode.
Definition: Material.h:297
Connection to a remote network host.
Definition: Connection.h:118
const FrameInfo & GetFrameInfo() const
Return information of the frame being rendered.
Definition: View.h:148
FaceCameraMode GetFaceCameraMode() const
Return how the billboards rotate in relation to the camera.
Definition: BillboardSet.h:128
VariantVector GetAnimationStatesAttr() const
Return animation states attribute.
Definition: AnimatedModel.cpp:877
Iterator Insert(const Iterator &dest, const ConstIterator &start, const ConstIterator &end)
Insert a vector partially by iterators.
Definition: Vector.h:913
void SetSorted(bool enable)
Set whether billboards are sorted by distance.
Definition: ParticleEffect.cpp:465
bool IsTypeOf(StringHash type) const
Check current type is type of specified type.
Definition: Object.cpp:45
void QueueUpdate()
Queue manual update of the viewport(s).
Definition: RenderSurface.cpp:72
void HandleUIMouseDoubleClick(StringHash eventType, VariantMap &eventData)
Handle global UI mouse doubleclick.
Definition: ListView.cpp:1107
void SetRawIndexData(const SharedArrayPtr< unsigned char > &data, unsigned indexSize)
Override raw index data to be returned for CPU-side operations.
Definition: Geometry.cpp:170
void SetVertexCount(unsigned count)
Set vertex count.
Definition: CollisionPolygon2D.cpp:55
SharedPtr< Texture2D > renderTexture_
Renderable texture.
Definition: View3D.h:85
const VariantMap & GetVars() const
Return all user variables.
Definition: UIElement.h:589
Matrix3() noexcept
Construct an identity matrix.
Definition: Matrix3.h:35
unsigned numCompressedLevels_
Number of compressed mip levels.
Definition: Image.h:224
void RemoveTextureFrame(unsigned index)
Remove texture frame at index.
Definition: ParticleEffect.cpp:696
~Sprite() override
Destruct.
@ AM_LATESTDATA
Attribute should use latest data grouping instead of delta update in network replication.
Definition: Attribute.h:45
HashSet< String > includeFiles_
Encountered include files during script file loading.
Definition: ScriptFile.h:140
Vector3 v2_
Vertex b.
Definition: DebugRenderer.h:83
bool scaled_
Scale affects billboard scale flag.
Definition: ParticleEffect.h:367
void SetAutoExit(bool enable)
Set whether to exit automatically on exit request (window close button).
Definition: Engine.cpp:583
void SetDither(bool enable)
Set whether rendering output is dithered. Default true on OpenGL. No effect on Direct3D.
Definition: OGLGraphics.cpp:524
unsigned long long GetUInt64(const String &name) const
Return an unsigned long long integer attribute, or zero if missing.
Definition: XMLElement.cpp:812
Union for the possible variant values. Objects exceeding the VARIANT_VALUE_SIZE are allocated on the ...
Definition: Variant.h:281
Scene * scene_
Scene which will be used for NAT punchtrough connections.
Definition: Network.h:180
OctreeQuery(PODVector< Drawable * > &result, unsigned char drawableFlags, unsigned viewMask)
Construct with query parameters.
Definition: OctreeQuery.h:44
float & operator[](unsigned index)
Return mutable value by index.
Definition: Vector4.h:168
const Vector< SharedPtr< PackageFile > > & GetPackageFiles() const
Return added package files.
Definition: ResourceCache.h:161
virtual bool OnDragDropTest(UIElement *source)
React to drag and drop test. Return true to signal that the drop is acceptable.
Definition: UIElement.cpp:452
void SetNavigationPushiness(NavigationPushiness val)
Set the agent's navigation pushiness.
Definition: CrowdAgent.cpp:463
int GetDepth() const
Return depth.
Definition: Image.h:165
void ReleaseResources(StringHash type, bool force=false)
Release all resources of a specific type.
Definition: ResourceCache.cpp:261
void SetSourcePositionVariance(const Vector2 &sourcePositionVariance)
Set source position variance.
Definition: ParticleEffect2D.cpp:304
bool dataLost_
Data lost flag.
Definition: GPUObject.h:77
Vector< SharedPtr< Image > > loadImages_
Face image files acquired during BeginLoad.
Definition: TextureCube.h:89
bool TryGetValue(const T &key, U &out) const
Try to copy value to output. Return true if was found.
Definition: HashMap.h:567
StringHash nameHash_
Name hash.
Definition: Node.h:69
void Swap(WeakPtr< T > &rhs)
Swap with another WeakPtr.
Definition: Ptr.h:442
FlagSet & operator&=(const Enum value)
Bitwise AND against Enum value.
Definition: FlagSet.h:76
bool GetResizable() const
Return whether window is resizable.
Definition: Graphics.h:366
~DebugRenderer() override
Destruct.
SharedArrayPtr< unsigned char > GetShadowDataShared() const
Return shared array pointer to the CPU memory shadow data.
Definition: VertexBuffer.h:109
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: TmxFile2D.cpp:451
void SetScaled(bool enable)
Set whether scene node scale affects billboards' size. Default true.
Definition: BillboardSet.cpp:296
float advanceX_
Horizontal advance.
Definition: FontFace.h:56
bool IsRelative() const
Return whether billboards are relative to the scene node.
Definition: ParticleEffect.h:236
Software renderer for occlusion.
Definition: OcclusionBuffer.h:91
bool SetUInt64(const String &name, unsigned long long value)
Set an unsigned long long integer attribute.
Definition: XMLElement.cpp:372
XMLElement & operator=(const XMLElement &rhs)
Assignment operator.
Definition: XMLElement.cpp:84
int GetFps() const
Return simulation steps per second.
Definition: PhysicsWorld.h:236
ResourceRef GetMaterialAttr() const
Get material attribute.
Definition: BorderImage.cpp:237
static void RegisterObject(Context *context)
Register object factory.
Definition: UIComponent.cpp:177
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: ProgressBar.cpp:120
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle begin frame event.
Definition: Network.cpp:974
bool Empty() const
Return whether vector is empty.
Definition: Vector.h:1157
bool WriteMatrix4(const Matrix4 &value)
Write a Matrix4.
Definition: Serializer.cpp:164
BatchQueue shadowBatches_
Shadow caster draw calls.
Definition: Batch.h:284
String psExtraDefines_
Pixel shader extra defines.
Definition: Batch.h:269
void * lockScratchData_
Scratch buffer for fallback locking.
Definition: IndexBuffer.h:111
~Console() override
Destruct.
Definition: Console.cpp:114
Describes how to render 3D geometries.
Definition: Material.h:106
static void SetMainThread()
Set the current thread as the main thread.
Definition: Thread.cpp:132
void SetSortValue(float value)
Set sorting value.
Definition: Drawable.cpp:291
bool drawNavAreas_
Debug draw NavArea components.
Definition: NavigationMesh.h:352
void ApplyToModel()
Apply animation to a skeleton. Transform changes are applied silently, so the model needs to dirty it...
Definition: AnimationState.cpp:455
void SetType(JSONValueType valueType, JSONNumberType numberType=JSONNT_NAN)
Set value type and number type, internal function.
Definition: JSONValue.cpp:344
bool Create() override
Create the GPU texture.
Definition: OGLTexture2DArray.cpp:419
RenderSurfaceUpdateMode GetUpdateMode() const
Return viewport update mode.
Definition: RenderSurface.h:87
unsigned sampleSize_
Sample size.
Definition: Audio.h:133
bool geometryTypeUpdate_
Update billboard geometry type.
Definition: BillboardSet.h:197
bool operator!=(const SharedArrayPtr< T > &rhs) const
Test for inequality with another shared array pointer.
Definition: ArrayPtr.h:123
void SetNumColorFrames(unsigned number)
Set number of color frames.
Definition: ParticleEffect.cpp:646
PODVector< unsigned char > GetDecalsAttr() const
Return decals attribute.
Definition: DecalSet.cpp:602
bool directoryMode_
Directory mode flag.
Definition: FileSelector.h:187
void SetEdgeMaxLength(float length)
Set edge max length.
Definition: NavigationMesh.cpp:290
virtual void SetModel(Model *model)
Set model.
Definition: StaticModel.cpp:230
CullMode GetCullMode() const
Return culling mode override. If pass is not overriding culling mode (default), the illegal mode MAX_...
Definition: Technique.h:93
Color GetPixelBilinear(float x, float y) const
Return a bilinearly sampled 2D pixel color. X and Y have the range 0-1.
Definition: Image.cpp:1549
void SendPackageError(const String &name)
Send an error reply for a package download.
Definition: Connection.cpp:1567
void HandleFocused(StringHash eventType, VariantMap &eventData)
Handle being focused.
Definition: LineEdit.cpp:637
Sphere in three-dimensional space.
Definition: Sphere.h:35
@ TM_BREADTH_FIRST
Traverse through children having same priority first and recurse into their children before traversin...
Definition: UIElement.h:99
void SetWheelRestLength(int wheel, float length)
Get wheel rest length.
Definition: RaycastVehicle.cpp:650
String declaration_
Function declaration.
Definition: ScriptEventListener.h:46
float GetBeginTime() const
Return begin time.
Definition: ValueAnimation.h:123
void Clear()
Clear the vector.
Definition: Vector.h:421
Condition on which a thread can wait.
Definition: Condition.h:35
float GetBufferLength() const
Return length of buffered (unplayed) sound data in seconds.
Definition: BufferedSoundStream.cpp:123
int BuildTile(Vector< NavigationGeometryInfo > &geometryList, int x, int z, TileCacheData *tiles)
Build one tile of the navigation mesh. Return true if successful.
Definition: DynamicNavigationMesh.cpp:820
void SetAnisotropicFriction(const Vector3 &friction)
Set anisotropic friction.
Definition: RigidBody.cpp:383
unsigned cursorPosition_
Text edit cursor position.
Definition: LineEdit.h:140
void Compact()
Reallocate so that no extra memory is used.
Definition: Str.cpp:472
@ HM_FOCUS
Highlight when focused.
Definition: ListView.h:39
JSONValue(bool value)
Construct with a boolean.
Definition: JSONValue.h:83
ScriptInstance(Context *context)
Construct.
Definition: ScriptInstance.cpp:65
int patchSize_
Patch size, quads per side.
Definition: Terrain.h:281
Raycast result.
Definition: OctreeQuery.h:185
Animation(Context *context)
Construct.
Definition: Animation.cpp:114
T RoundToNearestMultiple(T x, T multiple)
Round value to nearest multiple.
Definition: MathDefs.h:216
Vector4 tangent_
Tangent.
Definition: CustomGeometry.h:42
FaceCameraMode GetFaceCameraMode() const
Return how the text rotates in relation to the camera.
Definition: Text3D.h:157
bool IsInitialized() const
Return whether rendering initialized.
Definition: OGLGraphics.cpp:2027
unsigned vertexCount_
Number of vertices.
Definition: Model.h:46
bool IsVisible() const
Return is visible.
Definition: TmxFile2D.h:60
void SetDrawShape(bool drawShape)
Set draw shape.
Definition: PhysicsWorld2D.cpp:347
void MarkNetworkUpdate() override
Mark for attribute check on the next network update.
Definition: Component.cpp:99
RigidBody2D * body_
Rigid body that was hit.
Definition: PhysicsWorld2D.h:53
VariantVector GetVariantVector() const
Return a variant vector.
Definition: JSONValue.cpp:605
void RemoveConstraint(Constraint *constraint)
Remove a constraint. Called by Constraint.
Definition: PhysicsWorld.cpp:745
short ReadShort()
Read a 16-bit integer.
Definition: Deserializer.cpp:77
void Insert(unsigned pos, const String &str)
Insert a string.
Definition: Str.cpp:334
HashMap< unsigned, SharedPtr< PropertySet2D > > gidToPropertySetMapping_
Gid to tile property set mapping.
Definition: TmxFile2D.h:222
Technique * GetTechnique(Drawable *drawable, Material *material)
Return material technique, considering the drawable's LOD distance.
Definition: View.cpp:2813
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: AnimatedModel.cpp:102
bool animationOrderDirty_
Animation order dirty flag.
Definition: AnimatedModel.h:247
HashMap< Camera *, WeakPtr< View > > preparedViews_
Prepared views by culling camera.
Definition: Renderer.h:526
void AddViewBatch(ViewBatchInfo2D &viewBatchInfo, Material *material, unsigned indexStart, unsigned indexCount, unsigned vertexStart, unsigned vertexCount, float distance)
Add view batch.
Definition: Renderer2D.cpp:492
static unsigned basePassIndex
Index for base pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:260
unsigned char areaID_
Detour area ID.
Definition: NavigationMesh.h:88
const Vector< VAnimKeyFrame > & GetKeyFrames() const
Return all key frames.
Definition: ValueAnimation.h:132
TextureCube * GetFaceSelectCubeMap() const
Return the shadowed pointlight face selection cube map.
Definition: Renderer.h:373
float GetMobileShadowBiasMul() const
Return shadow depth bias multiplier for mobile platforms.
Definition: Renderer.h:334
unsigned auxViewFrameNumber_
Last auxiliary view rendered frame number.
Definition: Material.h:307
int height_
Height.
Definition: Image.h:218
ObjectFactory(Context *context)
Construct.
Definition: Object.h:203
StringHash nameHash_
Bone name hash.
Definition: Skeleton.h:62
void GetEventFrames(float beginTime, float endTime, PODVector< const VAnimEventFrame * > &eventFrames) const
Return all event frames between time.
Definition: ValueAnimation.cpp:361
unsigned Write(const void *data, unsigned size) override
Write bytes to the file. Return number of bytes actually written.
Definition: File.cpp:315
ClearTargetFlags clearFlags_
Clear flags. Affects clear command only.
Definition: RenderPath.h:166
void SetGravity(const Vector2 &gravity)
Set gravity.
Definition: ParticleEffect2D.cpp:339
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix3.h:275
T GetMetadata(const StringHash &key) const
Get attribute metadata of specified type.
Definition: Attribute.h:96
float GetInertia() const
Return inertia.
Definition: RigidBody2D.cpp:517
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: Text3D.cpp:173
Color animation frame definition.
Definition: ParticleEffect.h:44
Vector< IndexBufferDesc > loadIBData_
Index buffer data for asynchronous loading.
Definition: Model.h:228
T SmoothStep(T lhs, T rhs, T t)
Smoothly damp between values.
Definition: MathDefs.h:132
Vector(const Vector< T > &vector)
Copy-construct from another vector.
Definition: Vector.h:77
void RemovePackageFile(PackageFile *package, bool releaseResources=true, bool forceRelease=false)
Remove a package file. Optionally release the resources loaded from it.
Definition: ResourceCache.cpp:209
bool HasEventHandler(const String &eventName) const override
Return whether has subscribed to an event.
Definition: LuaScript.cpp:227
float lodBias_
LOD bias.
Definition: Drawable.h:377
T * GetChildStaticCast(unsigned index) const
Template version of returning child element by index using static cast.
Definition: UIElement.h:829
Description of a geometry for asynchronous loading.
Definition: Model.h:93
Animation instance.
Definition: AnimationState.h:71
void SendEvent(StringHash eventType, Args... args)
Send event with variadic parameter pairs to all subscribers. The parameter pairs is a list of paramID...
Definition: Object.h:138
void SetBasePass(unsigned batchIndex)
Set base pass flag for a batch.
Definition: Drawable.h:248
bool printing_
Flag when printing messages to prevent endless loop.
Definition: Console.h:189
~ConstantBuffer() override
Destruct.
Definition: ConstantBuffer.cpp:40
Bone * GetRootBone()
Return root bone.
Definition: Skeleton.cpp:148
int materialQuality_
Material quality level.
Definition: View.h:360
void MarkFBODirty()
Mark the FBO needing an update. Used only on OpenGL.
Definition: OGLGraphics.cpp:2522
HashNodeBase * head_
List head node pointer.
Definition: HashBase.h:149
const Vector3 & GetEmitterSize() const
Return emitter size.
Definition: ParticleEffect.h:254
Iterator(Node *ptr)
Construct with a node pointer.
Definition: HashSet.h:70
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: RigidBody2D.cpp:587
bool IsFinished() const
Returns whether the movement along the SplinePath is complete.
Definition: SplinePath.h:99
void SetVertexData(VertexBuffer *dest, const PODVector< float > &vertexData)
Upload UI geometry into a vertex buffer.
Definition: UI.cpp:980
Variant GetVariant() const
Return a variant attribute, or empty if missing.
Definition: XMLElement.cpp:847
UIElement * GetPlaceholder() const
Return selected item placeholder element.
Definition: DropDownList.h:88
void Define(const BoundingBox &box)
Define from another bounding box.
Definition: BoundingBox.h:144
unsigned lightMask_
Light mask.
Definition: Drawable.h:355
float SaturationHSL() const
Return saturation as defined for HSL.
Definition: Color.cpp:135
Integer value_
Value.
Definition: FlagSet.h:236
void SetAnchor(const Vector2 &anchor)
Set anchor.
Definition: ConstraintWeld2D.cpp:56
void ProcessLights()
Get lit geometries and shadowcasters for visible lights.
Definition: View.cpp:977
bool wordWrap_
Wordwrap mode.
Definition: Text.h:231
StringHash() noexcept
Construct with zero value.
Definition: StringHash.h:37
PODVector< Light * > lights_
Per-pixel lights affecting this drawable.
Definition: Drawable.h:387
PODVector< UIBatch > batches_
UI rendering batches.
Definition: UI.h:255
Geometry * geometry_
Geometry.
Definition: Drawable.h:96
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Light.cpp:542
virtual void OnWorldBoundingBoxUpdate()=0
Recalculate the world-space bounding box.
BorderImage * GetCursor() const
Return cursor element.
Definition: LineEdit.h:117
const String & GetTypeName() const
Return type name.
Definition: Object.h:56
const PODVector< VertexElement > & GetElements() const
Return vertex elements.
Definition: VertexBuffer.h:82
void LimitLights()
Sort and limit per-pixel lights to maximum allowed. Convert extra lights into vertex lights.
Definition: Drawable.cpp:322
int maxSubSteps_
Maximum number of simulation substeps per frame. 0 (default) unlimited, or negative values for adapti...
Definition: PhysicsWorld.h:342
Vector3 absNormal_
Plane absolute normal.
Definition: Plane.h:120
ConstraintPrismatic2D(Context *context)
Construct.
Definition: ConstraintPrismatic2D.cpp:37
FontHintLevel fontHintLevel_
FreeType hinting level (default is FONT_HINT_LEVEL_NORMAL).
Definition: UI.h:407
volatile float timePosition_
Playback time position.
Definition: SoundSource.h:189
void Apply()
Apply to GPU.
Definition: OGLConstantBuffer.cpp:89
MouseButtonFlags mouseButtons_
Mouse buttons held down.
Definition: UI.h:385
HashMap< StringHash, Variant > VariantMap
Map of variants.
Definition: Variant.h:86
@ AM_EDIT
Attribute shown only in the editor, but not serialized.
Definition: Attribute.h:37
float maxZ_
Scene maximum Z value.
Definition: View.h:104
void Define(const Vector2 &min, const Vector2 &max)
Define from minimum and maximum vectors.
Definition: Rect.h:145
unsigned fps_
Simulation substeps per second.
Definition: PhysicsWorld.h:340
static unsigned GetLuminanceAlphaFormat()
Return the API-specific luminance alpha texture format.
Definition: OGLGraphics.cpp:2569
const Color & GetColor() const
Return color.
Definition: StaticSprite2D.h:98
void SetValueVector(const PListValueVector &valueVector)
Set value vector.
Definition: PListFile.cpp:180
const CrowdObstacleAvoidanceParams & GetObstacleAvoidanceParams(unsigned obstacleAvoidanceType) const
Get the params for the specified obstacle avoidance type.
Definition: CrowdManager.cpp:541
void UpdateSourceBatches() override
Update source batches.
Definition: StaticSprite2D.cpp:295
void RecreateFixture()
Recreate fixture.
Definition: CollisionEdge2D.cpp:88
const IntVector2 & GetScreenPosition() const override
Update and return screen position.
Definition: Sprite.cpp:89
PODVector< float > & GetLodErrors()
Return geometrical error array.
Definition: TerrainPatch.h:101
void SetTextureName(TextureUnit unit, const String &name)
Set a texture resource name. Can also refer to a rendertarget defined in the rendering path.
Definition: RenderPath.cpp:236
Vertex or pixel shader on the GPU.
Definition: ShaderVariation.h:81
Matrix4 Transpose() const
Return transposed.
Definition: Matrix4.h:581
void SetUseTextureRect(bool useTextureRect)
Set whether to use custom-defined texture rectangle.
Definition: StaticSprite2D.cpp:199
bool borderless_
Whether to hide window borders. Window is always borderless in fullscreen.
Definition: Graphics.h:86
SharedPtr(SharedPtr< T > &&rhs) noexcept
Move-construct from another shared pointer.
Definition: Ptr.h:59
IntVector2 SumTouchPositions(UI::DragData *dragData, const IntVector2 &oldSendPos)
Sum touch positions and return the begin position ready to send.
Definition: UI.cpp:2137
Node * GetTargetNode() const
Retrieves the node that is being used as a target. Can be NULL.
Definition: IKEffector.cpp:78
float frequency_
Frequency.
Definition: SoundSource.h:136
bool textDirty_
Text needs update flag.
Definition: Text3D.h:210
static void RegisterObject(Context *context)
Register object factory. Drawable2D must be registered first.
Definition: StaticSprite2D.cpp:62
int GetLayoutSpacing() const
Return layout spacing.
Definition: UIElement.h:552
int GetWidth() const
Return window width in pixels.
Definition: Graphics.h:345
void SetCullMode(CullMode mode)
Set culling mode.
Definition: OcclusionBuffer.cpp:134
bool IsModal() const
Return modal flag.
Definition: Window.h:116
void SetCustomGImpactMesh(CustomGeometry *custom, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a triangle mesh from CustomGeometry.
Definition: CollisionShape.cpp:701
void SetIsDesktop(bool enable)
Set whether requires desktop level hardware.
Definition: Technique.cpp:361
unsigned char ReadUByte()
Read an 8-bit unsigned integer.
Definition: Deserializer.cpp:112
bool resetViews_
Flag for views needing reset.
Definition: Renderer.h:604
ResourceRef(StringHash type)
Construct with type only and empty id.
Definition: Variant.h:95
unsigned GetNumAxes() const
Return number of axes.
Definition: Input.h:91
virtual void UpdateBatches(const FrameInfo &frame)
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Drawable.cpp:134
LineEdit * pathEdit_
Path editor.
Definition: FileSelector.h:157
void HandleRootElementResized(StringHash eventType, VariantMap &eventData)
Handle UI root resize.
Definition: Console.cpp:525
String fileName_
Source file name.
Definition: Scene.h:298
bool recreateShape_
Recreate collision shape flag.
Definition: CollisionShape.h:316
float GetKerning(unsigned c, unsigned d) const
Return the kerning for a character and the next character.
Definition: FontFace.cpp:67
float GetBrightness() const
Return brightness multiplier. Specified in lumens when "use physical values" is enabled.
Definition: Light.h:244
WeakPtr< RigidBody > hullBody_
Hull RigidBody.
Definition: RaycastVehicle.h:188
bool Empty() const
Return whether the string is empty.
Definition: Str.h:612
void ProcessClickEnd(const IntVector2 &windowCursorPos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, bool cursorVisible)
Handle button or touch end.
Definition: UI.cpp:1517
RenderSurface * substituteRenderTarget_
Substitute rendertarget for deferred rendering. Allocated if necessary.
Definition: View.h:334
bool EndsWith(const String &str, bool caseSensitive=true) const
Return whether ends with a string.
Definition: Str.cpp:717
void HandleAttributeAnimationUpdate(StringHash eventType, VariantMap &eventData)
Handle attribute animation update event.
Definition: Node.cpp:2261
bool HasElement(VertexElementSemantic semantic, unsigned char index=0) const
Return whether has a specified element semantic.
Definition: VertexBuffer.h:91
T & operator[](unsigned index)
Return element at index.
Definition: Vector.h:194
void Clear()
Clear all faces.
Definition: Polyhedron.cpp:232
PODVector< Pass * > GetPasses() const
Return all passes.
Definition: Technique.cpp:483
Vector< SharedPtr< PackageFile > > requiredPackageFiles_
Required package files for networking.
Definition: Scene.h:300
void SetOcclusionLodLevel(unsigned level)
Set LOD level used for terrain patch occlusion. By default (M_MAX_UNSIGNED) the coarsest....
Definition: Terrain.cpp:221
void SetVertexShaderDefines(const String &defines)
Set additional vertex shader defines. Separate multiple defines with spaces. Setting defines at the m...
Definition: Material.cpp:935
bool allowInstancing_
Allow instancing flag.
Definition: View.h:85
Node * Tail() const
Return the tail node.
Definition: HashMap.h:625
void PatchRemove(const pugi::xpath_node &original) const
Remove a node or attribute in the Patch.
Definition: XMLFile.cpp:262
Vector2 Size() const
Return size.
Definition: Rect.h:203
Vector3 GetDisplayDPI(int monitor=0) const
Return display dpi information: (hdpi, vdpi, ddpi). On failure returns zero vector.
Definition: Graphics.cpp:330
bool IsTypeOf() const
Check current type is type of specified class type.
Definition: Object.h:51
CrowdAgent(Context *context)
Construct.
Definition: CrowdAgent.cpp:80
int Bottom() const
Return bottom coordinate.
Definition: Rect.h:458
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Constraint.cpp:126
StringHash type_
Object type.
Definition: Variant.h:156
unsigned GetFreeComponentID(CreateMode mode)
Get free component ID, either non-local or local.
Definition: Scene.cpp:874
Vector3 size_
Shape size.
Definition: CollisionShape.h:306
void * readOnlyView_
Direct3D11 read-only depth-stencil view. Present only on depth-stencil surfaces.
Definition: RenderSurface.h:142
HashMap< StringHash, MaterialShaderParameter > shaderParameters_
Shader parameters.
Definition: Material.h:289
ParticleEmitter2D(Context *context)
Construct.
Definition: ParticleEmitter2D.cpp:45
Vector< SourceBatch2D > sourceBatches_
Source batches.
Definition: Drawable2D.h:116
const JSONArray & GetArray() const
Return JSON array value.
Definition: JSONValue.h:206
void SetShapeTextureAttr(const ResourceRef &value)
Set shape texture attribute.
Definition: Light.cpp:526
void SetScale(const Vector2 &scale)
Set scale. Scale also affects child sprites.
Definition: Sprite.cpp:166
void MarkBodyDirty()
Mark body dirty.
Definition: RigidBody.h:266
int GetMipsToSkip(MaterialQuality quality) const
Return mip levels to skip on a quality setting when loading.
Definition: Texture.cpp:124
DynamicNavBuildData(dtTileCacheAlloc *allocator)
Constructor.
Definition: NavBuildData.cpp:68
Variant(const Quaternion &value)
Construct from a quaternion.
Definition: Variant.h:397
static void RegisterObject(Context *context)
Register object factory.
Definition: Sprite2D.cpp:49
bool drawShadows_
Draw shadows flag.
Definition: View.h:372
static bool gl3Support
OpenGL3 support flag.
Definition: Graphics.h:868
Vector(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: Vector.h:95
void SetTransform2D(const Vector2 &position, float rotation)
Set both position and rotation in parent space as an atomic operation (for Urho2D).
Definition: Node.h:170
AnimationTrack()
Construct.
Definition: Animation.h:69
Node * FindNode(const T &key, unsigned hashKey, Node *&previous) const
Find a node and the previous node from the buckets. Do not call if the buckets have not been allocate...
Definition: HashMap.h:642
unsigned char * GetShadowData() const
Return CPU memory shadow data.
Definition: VertexBuffer.h:106
void SetScale(const Vector3 &scale)
Set scaling elements.
Definition: Matrix4.h:504
Vector< AttributeInfo > attributeInfos_
Attributes, including script object variables.
Definition: LuaScriptInstance.h:181
Color modalShadeColor_
Modal shade color, used when modal flag is set.
Definition: Window.h:163
bool RemoveChild(const XMLElement &element)
Remove a child element. Return true if successful.
Definition: XMLElement.cpp:147
RenderSurface * depthStencil_
Depth-stencil surface in use.
Definition: Graphics.h:795
~Drawable() override
Destruct.
Definition: Drawable.cpp:94
float rotationEnd_
Rotation end.
Definition: ParticleEffect2D.h:326
b2RevoluteJointDef jointDef_
Box2D joint def.
Definition: ConstraintRevolute2D.h:84
XPathResultSet Select(const String &query, pugi::xpath_variable_set *variables=nullptr) const
Select elements/attributes using XPath query.
Definition: XMLElement.cpp:245
unsigned mipsToSkip_[MAX_TEXTURE_QUALITY_LEVELS]
Mip levels to skip when loading per texture quality setting.
Definition: Texture.h:231
Tmx image layer.
Definition: TmxFile2D.h:130
ProfilerBlock * root_
Root profiling block.
Definition: Profiler.h:225
Matrix2(const float *data) noexcept
Construct from a float array.
Definition: Matrix2.h:57
T * Get() const
Return the raw pointer.
Definition: Ptr.h:208
bool perInstance_
Per-instance flag.
Definition: GraphicsDefs.h:218
Variant(const Rect &value)
Construct from a rect.
Definition: Variant.h:469
HashMap< Pair< StringHash, StringHash >, BackgroundLoadItem > backgroundLoadQueue_
Resources that are queued for background loading.
Definition: BackgroundLoader.h:84
bool GetDrawDebug() const
Return whether to draw debug geometry.
Definition: Viewport.h:84
const JSONValue & Get(const String &key) const
Return JSON value with key.
Definition: JSONValue.cpp:276
Physics raycast hit.
Definition: PhysicsWorld.h:60
void ApplyOriginalPoseToScene()
Definition: IKSolver.cpp:441
bool bufferSizeDirty_
Buffers need resize flag.
Definition: BillboardSet.h:191
float GetAgentMaxClimb() const
Return navigation agent max vertical climb.
Definition: NavigationMesh.h:213
bool CheckVisibility(Drawable2D *drawable) const
Check visibility.
Definition: Renderer2D.cpp:267
static const Vector4 ZERO
Zero vector.
Definition: Vector4.h:234
bool LoadChunk(lua_State *luaState)
Load buffer as chunk. Return true if the resource is successfully loaded as a Lua function on top of ...
Definition: LuaFile.cpp:87
void SetAgentMaxSlope(float maxSlope)
Set navigation agent max slope.
Definition: NavigationMesh.cpp:269
void SetCellSize(float size)
Set cell size.
Definition: NavigationMesh.cpp:234
RenderSurface * depthAttachment_
Bound depth/stencil attachment.
Definition: OGLGraphicsImpl.h:91
Quaternion(float angle) noexcept
Construct from an angle (in degrees, for Urho2D).
Definition: Quaternion.h:102
StoredLogMessage(const String &message, int level, bool error)
Construct with parameters.
Definition: Log.h:57
void RemoveConstraint2D(Constraint2D *constraint)
Remove constraint.
Definition: RigidBody2D.cpp:500
~Window() override
Destruct.
static void RegisterObject(Context *context)
Register object factory. Drawable2D must be registered first.
Definition: ParticleEffect2D.cpp:109
void SetPosition(const Vector3 &position)
Set rigid body position in world space.
Definition: RigidBody.cpp:226
HashMap< String, CursorShapeInfo > shapeInfos_
Shape definitions.
Definition: Cursor.h:140
void StoreResourceDependency(Resource *resource, const String &dependency)
Store a dependency for a resource. If a dependency file changes, the resource will be reloaded.
Definition: ResourceCache.cpp:884
CompareMode GetDepthTest() const
Return depth compare mode.
Definition: Graphics.h:519
void SetRelative(bool enable)
Set whether billboards are relative to the scene node. Default true.
Definition: BillboardSet.cpp:290
void SetFogHeightScale(float scale)
Set fog height scale. Effective only in height fog mode.
Definition: Zone.cpp:142
void DrawDebugGeometry()
Add debug geometry to the debug renderer.
Definition: PhysicsWorld2D.cpp:335
Text * titleText_
Window title text.
Definition: FileSelector.h:153
float Distance(const Vector3 &point) const
Return distance of a point to the frustum, or 0 if inside.
Definition: Frustum.h:162
bool Create()
Create buffer.
Definition: OGLIndexBuffer.cpp:226
PODVector< Drawable * > nonThreadedGeometries_
Geometry objects that will be updated in the main thread.
Definition: View.h:396
void SetInt(int value)
Set int.
Definition: PListFile.cpp:124
Vector3 previousPosition_
Agent's previous position used to check for position changes.
Definition: CrowdAgent.h:232
const HashMap< StringHash, ShaderParameter > & GetParameters() const
Return all parameter definitions. Not applicable on OpenGL, where this information is contained in Sh...
Definition: ShaderVariation.h:120
void ResetCachedState()
Reset cached rendering state.
Definition: OGLGraphics.cpp:3164
Wide character string. Only meant for converting from String and passing to the operating system wher...
Definition: Str.h:570
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: JSONFile.cpp:114
btCollisionConfiguration * collisionConfig_
Override for the collision configuration (default btDefaultCollisionConfiguration).
Definition: PhysicsWorld.h:118
const String & GetTypeName(StringHash objectType) const
Return object type name from hash, or empty if unknown.
Definition: Context.cpp:382
HashMap< unsigned, FontGlyph > glyphMapping_
Glyph mapping.
Definition: FontFace.h:106
void UpdateNodeIds()
Update the Node IDs of the Control Points.
Definition: SplinePath.cpp:327
@ ASYNC_LOADING
In progress of calling BeginLoad() in a worker thread.
Definition: Resource.h:46
Vector< SharedPtr< VertexBuffer > > vertexBuffers_
Vertex buffers.
Definition: Geometry.h:117
bool IsPooling() const
Return true when using internal database connection pool. The internal database pool is managed by th...
Definition: Database.h:59
HashMap< StringHash, SharedPtr< ShaderVariation > > vsVariations_
Vertex shader variations.
Definition: Shader.h:75
float rotatePerSecond_
Rotate per second.
Definition: ParticleEffect2D.h:316
PODVector< UIElement * > GetSelectedItems() const
Return all selected items.
Definition: ListView.cpp:897
bool Contains(const String &key) const
Return whether contains a pair with key.
Definition: JSONValue.cpp:296
ShaderProgram * GetShaderProgram() const
Return shader program. This is an API-specific class and should not be used by applications.
Definition: OGLGraphics.cpp:2152
unsigned GetNumAnimations() const
Get number of animations.
Definition: AnimationSet2D.cpp:156
static unsigned char * GetImageData(Deserializer &source, int &width, int &height, unsigned &components)
Decode an image using stb_image.
Definition: Image.cpp:2339
unsigned GetFrameNumber() const
Return frame number, starting from 1 once BeginFrame() is called for the first time.
Definition: Timer.h:96
VariantType GetVariantType()
Return variant type from type.
bool IsInternal() const
Return whether is internally created.
Definition: UIElement.h:532
CollisionGeometryDataCache convexCache_
Cache for convex geometry data by model and LOD level.
Definition: PhysicsWorld.h:330
bool usedResolve_
Flag for scene being resolved from the backbuffer.
Definition: View.h:439
IntRect imageRect_
Image rectangle.
Definition: Cursor.h:82
bool SetData(const void *data)
Set all data in the buffer.
Definition: OGLVertexBuffer.cpp:81
float GetFontSize() const
Return font size.
Definition: Text3D.cpp:393
void UpdateCursor()
Update cursor position and restart cursor blinking.
Definition: LineEdit.cpp:592
HashMap< SLNet::AddressOrGUID, SharedPtr< Connection > > clientConnections_
Server's client connections.
Definition: Network.h:156
const PODVector< Light * > & GetLights() const
Return lights.
Definition: View.h:169
RefCount * refCount_
Pointer to the reference count structure.
Definition: RefCounted.h:86
Matrix4() noexcept
Construct an identity matrix.
Definition: Matrix4.h:42
void SetOcclusionLodLevelAttr(unsigned value)
Set occlusion LOD level attribute.
Definition: Terrain.cpp:828
void DisableLayoutUpdate()
Disable automatic layout update. Should only be used if there are performance problems.
Definition: UIElement.cpp:1207
Application(Context *context)
Construct. Parse default engine parameters from the command line, and create the engine in an uniniti...
Definition: Application.cpp:50
WeakPtr< CrowdManager > crowdManager_
Crowd manager.
Definition: CrowdAgent.h:204
Context * context_
Execution context.
Definition: Object.h:226
T * Next(T *element) const
Return next element, or null if no more elements.
Definition: LinkedList.h:184
Pass * GetPass(unsigned index, const String &passName) const
Return pass by technique index and pass name.
Definition: Material.cpp:1191
void SetDragBeginInterval(float interval)
Set UI drag event start interval in seconds.
Definition: UI.cpp:649
WeakPtr< TerrainPatch > west_
West neighbor patch.
Definition: TerrainPatch.h:132
Vector< SharedPtr< Node > > shadowCameraNodes_
Reusable scene nodes with shadow camera components.
Definition: Renderer.h:500
bool parametersDirty_
Parameters dirty flag.
Definition: Texture.h:239
InterpMethod interpolationMethod_
Interpolation method.
Definition: ValueAnimation.h:153
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: Animatable.cpp:123
2D motor constraint component.
Definition: ConstraintMotor2D.h:31
MaterialQuality textureQuality_
Texture quality level.
Definition: Renderer.h:542
float GetAngle() const
Return angle.
Definition: ParticleEffect2D.h:155
void SetVertices(const PODVector< Vector2 > &vertices)
Set vertices.
Definition: CollisionPolygon2D.cpp:74
virtual bool SaveJSON(JSONValue &dest) const
Save as JSON data. Return true if successful.
Definition: Serializable.cpp:549
unsigned GetNumMorphs() const
Return number of vertex morphs.
Definition: AnimatedModel.h:133
virtual bool SaveDefaultAttributes() const
Return whether should save default-valued attributes into XML. Default false.
Definition: Serializable.h:79
void Invoke(VariantMap &eventData) override
Invoke event handler function.
Definition: Object.h:312
const RenderPathCommand * forwardLightsCommand_
Pointer to the forwardlights command if any.
Definition: View.h:435
float GetMaxEmissionRate() const
Return maximum emission rate.
Definition: ParticleEffect.h:278
float y_
Y coordinate.
Definition: Quaternion.h:465
unsigned tailColumn_
Number of columns for every tails.
Definition: RibbonTrail.h:235
String name_
Pass name.
Definition: Technique.h:186
bool GetKeyFrameIndex(float time, unsigned &index) const
Return keyframe index based on time and previous index. Return false if animation is empty.
Definition: Animation.cpp:92
float drawDistance_
Draw distance.
Definition: Drawable.h:367
void AddRigidBody(RigidBody2D *rigidBody)
Add rigid body.
Definition: PhysicsWorld2D.cpp:430
void SetImageBorder(const IntRect &rect)
Set border dimensions on the image. If zero (default) uses the screen dimensions, resulting in pixel-...
Definition: BorderImage.cpp:105
float snapThreshold_
Motion smoothing snap threshold.
Definition: Scene.h:332
float RandomNormal(float meanValue, float variance)
Return a random normal distributed number with the given mean value and variance.
Definition: MathDefs.h:299
void Clear(const Color &color)
Clear the image with a color.
Definition: Image.cpp:1215
unsigned indexCount_
Index count.
Definition: Model.h:83
ShaderParameterGroup
Shader parameter groups for determining need to update. On APIs that support constant buffers,...
Definition: GraphicsDefs.h:307
unsigned GetMaxLodLevels() const
Return maximum number of LOD levels for terrain patches. This can be between 1-4.
Definition: Terrain.h:117
WeakPtr< Drawable2D > owner_
Owner.
Definition: Drawable2D.h:54
Geometry * GetGeometry(unsigned index, unsigned lodLevel) const
Return geometry by index and LOD level. The LOD level is clamped if out of range.
Definition: Model.cpp:741
static bool IsMainThread()
Return whether is executing in the main thread.
Definition: Thread.cpp:150
bool AddScriptSection(asIScriptEngine *engine, Deserializer &source)
Add a script section, checking for includes recursively. Return true if successful.
Definition: ScriptFile.cpp:705
unsigned nonModalBatchSize_
Non-modal batch size (used internally for rendering).
Definition: UI.h:415
Constraint2D(Context *context)
Construct.
Definition: Constraint2D.cpp:41
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Drawable.cpp:360
void SetDrawJoint(bool drawJoint)
Set draw joint.
Definition: PhysicsWorld2D.cpp:356
float GetMaxForce() const
Return max force.
Definition: ConstraintMotor2D.h:61
void Define(const Vector2 &point)
Define from a point.
Definition: Rect.h:152
LinkedList< T > & operator=(const LinkedList< T > &list)=delete
Non-assignable.
void AddComponent(unsigned oldID, Component *component)
Remember a created component.
Definition: SceneResolver.cpp:51
VariantVector GetNodeAnimationStatesAttr() const
Return node animation states attribute.
Definition: AnimationController.cpp:823
float GetDampingRatio() const
Return damping ratio.
Definition: ConstraintWheel2D.h:77
void ProcessRemoteEvent(int msgID, MemoryBuffer &msg)
Process a remote event message from the client or server. Called by Network.
Definition: Connection.cpp:1018
bool WriteVariantData(const Variant &value)
Write a variant without the type information.
Definition: Serializer.cpp:247
void SetMasterGain(const String &type, float gain)
Set master gain on a specific sound type such as sound effects, music or voice.
Definition: Audio.cpp:162
float scaleX_
X scaling for viewport transform.
Definition: OcclusionBuffer.h:215
void SetAttributeAnimationSpeed(const String &name, float speed)
Set attribute animation speed.
Definition: Animatable.cpp:399
void SetUVTransform(const Vector2 &offset, float rotation, const Vector2 &repeat)
Set texture coordinate transform.
Definition: Material.cpp:1043
float PitchAngle() const
Return pitch angle in degrees.
Definition: Quaternion.cpp:214
FocusParameters shadowFocus_
Shadow map focus parameters.
Definition: Light.h:361
bool enabled_
Enabled flag.
Definition: Node.h:673
void ProcessControls(int msgID, MemoryBuffer &msg)
Process a Controls message from the client. Called by Network.
Definition: Connection.cpp:959
HiresTimer()
Construct. Get the starting high-resolution clock value.
Definition: Timer.cpp:215
void setWorldTransform(const btTransform &worldTrans) override
Update world transform from Bullet.
Definition: RigidBody.cpp:162
SharedPtr< XMLFile > loadXMLFile_
XML file used while loading.
Definition: SpriteSheet2D.h:90
bool GetLineAntiAlias() const
Return whether line antialiasing is enabled.
Definition: Material.h:238
virtual void Start()
Setup after engine initialization and before running the main loop. Call ErrorExit() to terminate wit...
Definition: Application.h:47
float GetFadeTarget(const String &name) const
Return animation fade target weight.
Definition: AnimationController.cpp:539
virtual const Vector< AttributeInfo > * GetAttributes() const
Return attribute descriptions, or null if none defined.
Definition: Serializable.cpp:283
float GetShadowDistance() const
Return shadow draw distance.
Definition: Terrain.h:163
void SetTemporary(bool enable)
Set temporary flag. Temporary objects will not be saved.
Definition: Serializable.cpp:675
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: BoundingBox.cpp:116
CompareMode stencilTestMode_
Stencil test compare mode.
Definition: Graphics.h:827
bool GetAlwaysUpdateOwner() const
Return whether updates to owner should be sent always at full rate.
Definition: NetworkPriority.h:62
Vector3 GetPoint(float theta, float phi) const
Return point on the sphere.
Definition: Sphere.h:199
void Normalize()
Normalize to unit length.
Definition: Vector2.h:289
Iterator Insert(const T &key)
Insert a key. Return an iterator to it.
Definition: HashSet.h:286
bool dynamicInstancing_
Dynamic instancing flag.
Definition: Renderer.h:594
Vector< PODVector< unsigned > > geometryBoneMappings_
Geometry bone mappings.
Definition: Model.h:216
String SubstringUTF8(unsigned pos) const
Return a UTF8 substring from position to end.
Definition: Str.cpp:864
bool Test(const Integer flags) const
Return true if specified bits are set.
Definition: FlagSet.h:220
Sprite timeline key.
Definition: SpriterData2D.h:292
void Render()
Update vertex buffer and render all debug lines. The viewport and rendertarget should be set before.
Definition: DebugRenderer.cpp:488
bool SetStartBone(const String &name, const String &startBoneName)
Set animation start bone. Return true on success.
Definition: AnimationController.cpp:311
static String ToString(const T &value)
Convert type to string.
Definition: Variant.h:221
void SetAlgorithm(Algorithm algorithm)
Selects the solver algorithm. Default is FABRIK. Note that this may not be the most efficient algorit...
Definition: IKSolver.cpp:114
void SetColorWrite(bool enable)
Set color write on/off.
Definition: OGLGraphics.cpp:1773
unsigned totalDataSize_
Total data size in the package using each entry's actual size if it is a compressed package file.
Definition: PackageFile.h:98
void SetUsePhysicalValues(bool enable)
Set use physical light values.
Definition: Light.cpp:308
int GetMaskBits() const
Return filter mask bits.
Definition: CollisionShape2D.h:77
bool GetInterceptNetworkUpdate(const String &attributeName) const
Return whether an attribute's network updates are being intercepted.
Definition: Serializable.cpp:1001
void SetWordwrap(bool enable)
Set wordwrap. In wordwrap mode the text element will respect its current width. Otherwise it resizes ...
Definition: Text3D.cpp:268
void * instancingData_
Per-instance data. If not null, must contain enough data to fill instancing buffer.
Definition: Batch.h:96
const Matrix3x4 & GetWorldTransform() const
Return world space transform matrix.
Definition: Node.h:484
@ LM_FORCE_LOOPED
Force looped.
Definition: AnimatedSprite2D.h:44
~PhysicsWorld2D() override
Destruct.
Definition: PhysicsWorld2D.cpp:66
RigidBody2D * GetOwnerBody() const
Return owner body.
Definition: Constraint2D.h:65
void FromAxes(const Vector3 &xAxis, const Vector3 &yAxis, const Vector3 &zAxis)
Define from orthonormal axes.
Definition: Quaternion.cpp:95
unsigned GetDataSize(int width, int height) const
Return data size in bytes for a rectangular region.
Definition: Texture.cpp:150
unsigned RemoveWorkItems(const Vector< SharedPtr< WorkItem > > &items)
Remove a number of work items before they have started executing. Return the number of items successf...
Definition: WorkQueue.cpp:197
StaticModelGroup(Context *context)
Construct.
Definition: StaticModelGroup.cpp:49
ListView(Context *context)
Construct.
Definition: ListView.cpp:167
bool Initialize(const VariantMap ¶meters)
Initialize engine using parameters given and show the application window. Return true if successful.
Definition: Engine.cpp:163
String pixelShaderName_
Pixel shader name.
Definition: Technique.h:168
unsigned GetVertexStart() const
Return first used vertex.
Definition: Geometry.h:92
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: ListView.cpp:936
float nearSplit_
Directional light cascade near split distance.
Definition: Batch.h:286
Component(Context *context)
Construct.
Definition: Component.cpp:54
void MakeShape(const Vector< Urho3D::Vector3 > &pointList, bool connectTail=true)
Draws a shape generated by connecting the points in the input vector (the end point will connect to t...
Definition: CustomGeometry.cpp:280
virtual IntVector2 ElementToScreen(const IntVector2 &position)
Convert element coordinates to screen coordinates.
Definition: UIElement.cpp:467
LockState lockState_
Buffer locking state.
Definition: VertexBuffer.h:160
void DefineSplit(const Matrix4 &projection, float near, float far)
Define a split (limited) frustum from a projection matrix, with near & far distances specified.
Definition: Frustum.cpp:151
WeakPtr< Scene > scene_
Extra weak pointer to scene to allow for cleanup in case the world is destroyed before other componen...
Definition: PhysicsWorld.h:314
void SetShaderParameterAnimation(const String &name, ValueAnimation *animation, WrapMode wrapMode=WM_LOOP, float speed=1.0f)
Set shader parameter animation.
Definition: Material.cpp:984
T * GetCustomPtr()
Return a pointer to a modifiable custom variant value or null on type mismatch.
Definition: Variant.h:1363
IntVector2 minOffset_
Minimum offset.
Definition: UIElement.h:783
void HandleAttributeAnimationUpdate(StringHash eventType, VariantMap &eventData)
Handle scene attribute animation update event.
Definition: Component.cpp:283
const VariantMap & GetVars() const
Return all user variables.
Definition: Node.h:560
void * GetShaderResourceView() const
Return shader resource view. Only used on Direct3D11.
Definition: Texture.h:157
unsigned FloatToRawIntBits(float value)
Return a representation of the specified floating-point value as a single format bit layout.
Definition: MathDefs.h:106
Context * GetContext() const
Return execution context.
Definition: Object.h:213
b2WheelJointDef jointDef_
Box2D joint def.
Definition: ConstraintWheel2D.h:84
SharedPtr< XMLFile > defaultStyle_
Default style file.
Definition: UIElement.h:811
void SetChildOffset(const IntVector2 &offset)
Set child offset.
Definition: UIElement.cpp:1800
bool SetVector2(const String &name, const Vector2 &value)
Set a Vector2 attribute.
Definition: XMLElement.cpp:523
ObjectType
Object type.
Definition: SpriterData2D.h:193
Skeletal animation track, stores keyframes of a single bone.
Definition: Animation.h:66
bool GetShadowCompare() const
Return whether shadow compare is enabled. Not used on Direct3D9.
Definition: Texture.h:100
Mainline key.
Definition: SpriterData2D.h:163
void RemoveAllTags()
Remove all tags.
Definition: UIElement.cpp:1490
void AddTag(const String &tag)
Add a tag.
Definition: Node.cpp:352
bool RemoveChildren(const String &name=String::EMPTY)
Remove child elements of certain name, or all child elements if name is empty. Return true if success...
Definition: XMLElement.cpp:171
void UpdateShape()
Update the collision shape after attribute changes.
Definition: CollisionShape.cpp:1001
ListNodeBase * head_
Head node pointer.
Definition: ListBase.h:116
Vector3 HeightMapToWorld(const IntVector2 &pixelPosition) const
Convert heightmap pixel position to world position.
Definition: Terrain.cpp:636
SharedArrayPtr(T *ptr)
Construct from a raw pointer.
Definition: ArrayPtr.h:53
void AddTriangleMesh(const void *vertexData, unsigned vertexSize, const void *indexData, unsigned indexSize, unsigned indexStart, unsigned indexCount, const Matrix3x4 &transform, const Color &color, bool depthTest=true)
Add a triangle mesh.
Definition: DebugRenderer.cpp:388
String ToUpper() const
Return string in uppercase.
Definition: Str.cpp:552
virtual bool BuildTile(Vector< NavigationGeometryInfo > &geometryList, int x, int z)
Build one tile of the navigation mesh. Return true if successful.
Definition: NavigationMesh.cpp:1302
void Release() override
Release the buffer.
Definition: OGLConstantBuffer.cpp:35
RenderSurface(Texture *parentTexture)
Construct with parent texture.
Definition: OGLRenderSurface.cpp:45
Vector3 spacing_
Vertex spacing.
Definition: CollisionShape.h:133
Lua script event listener.
Definition: LuaScriptEventListener.h:31
unsigned GetSize() const
Return size.
Definition: ConstantBuffer.h:59
void Initialize()
Initialize when screen mode initially set.
Definition: UI.cpp:938
float y_
Y coordinate.
Definition: Text.h:69
const void * indexData_
Index data pointer. Null if using non-indexed geometry.
Definition: OcclusionBuffer.h:74
~Renderer2D() override
Destruct.
void SetTextCopyable(bool enable)
Set whether copy-paste operations are allowed, default true.
Definition: LineEdit.cpp:532
HashMap< String, SharedPtr< Sprite2D > > spriteMapping_
Sprite mapping.
Definition: SpriteSheet2D.h:86
BoundingBox(const Vector3 *vertices, unsigned count)
Construct from an array of vertices.
Definition: BoundingBox.h:90
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Skybox.cpp:80
Operating system thread.
Definition: Thread.h:42
void SetDrawObstacles(bool enable)
Draw debug geometry for Obstacles.
Definition: DynamicNavigationMesh.h:96
unsigned Write(const void *data, unsigned size) override
Write bytes to the buffer. Return number of bytes actually written.
Definition: VectorBuffer.cpp:72
static bool IsZero(const T &value)
Check whether the value is zero.
Definition: Variant.h:219
unsigned capacity_
Capacity, zero if buffer not allocated.
Definition: Str.h:545
bool IsReplicated() const
Return whether the component is replicated or local to a scene.
Definition: Component.cpp:150
void StopWatching()
Stop watching the directory.
Definition: FileWatcher.cpp:191
void ResetDependencies(Resource *resource)
Reset dependencies for a resource.
Definition: ResourceCache.cpp:896
CompareMode GetStencilTestMode() const
Return stencil compare mode.
Definition: Graphics.h:540
int layoutSpacing_
Layout spacing.
Definition: UIElement.h:722
void RecreateFixture()
Recreate fixture.
Definition: CollisionPolygon2D.cpp:111
void SetScale2D(const Vector2 &scale)
Set scale in parent space (for Urho2D).
Definition: Node.h:155
IntVector3(const int *data) noexcept
Construct from an int array.
Definition: Vector3.h:52
bool skinned_
Skinned mode flag.
Definition: DecalSet.h:241
EventReceiverGroup * GetEventReceivers(Object *sender, StringHash eventType)
Return event receivers for a sender and event type, or null if they do not exist.
Definition: Context.h:187
void OnSetEnabled() override
Update the owning mesh when enabled status has changed.
Definition: Obstacle.cpp:62
void SetDrawDebug(bool enable)
Set whether to render debug geometry. Default true.
Definition: Viewport.cpp:89
void UpdateCachedGeometryShape(CollisionGeometryDataCache &cache)
Update cached geometry collision shape.
Definition: CollisionShape.cpp:1098
void Commit()
Update vertex buffer and calculate the bounding box. Call after finishing defining geometry.
Definition: CustomGeometry.cpp:612
String loadingPercentStyle_
ProgressBar text style.
Definition: ProgressBar.h:100
HashMap< StringHash, Variant > masterGain_
Master gain by sound source type.
Definition: Audio.h:145
int GetLayer() const
Return layer.
Definition: Drawable2D.h:90
UniquePtr< VariantMap > instanceDefaultValues_
Attribute default value at each instance level.
Definition: Serializable.h:144
String ToString(const String &indentation="\t") const
Serialize the XML content to a string.
Definition: XMLFile.cpp:183
const IntVector3 & GetIntVector3() const
Return an IntVector3 or empty on type mismatch.
Definition: Variant.h:1262
bool delayedStartCalled_
Flag for delayed start.
Definition: LogicComponent.h:112
Vector2 WorldToScreenPoint(const Vector3 &worldPos) const
Convert a world space point to normalized screen coordinates (0 - 1).
Definition: Camera.cpp:410
void ReleaseObject()
Release the script object.
Definition: ScriptInstance.cpp:587
void ResetRenderTarget(unsigned index)
Reset specific rendertarget.
Definition: OGLGraphics.cpp:1621
PODVector< unsigned char > GetVerticesAttr() const
Return vertices attribute.
Definition: CollisionChain2D.cpp:109
HashMap< String, JSONValue > JSONObject
JSON object type.
Definition: JSONValue.h:67
bool GetUsePhysicalValues() const
Return if light uses temperature and brightness in lumens.
Definition: Light.h:235
void SetTangentialAcceleration(float tangentialAcceleration)
Set tangential acceleration.
Definition: ParticleEffect2D.cpp:349
void AddTriangle(const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, const Color &color, bool depthTest=true)
Add a solid triangle.
Definition: DebugRenderer.cpp:103
EventHandler * Clone() const override
Return a unique copy of the event handler.
Definition: Object.h:319
bool GetFeature(Feature feature) const
Test if a certain feature is enabled (see IKEffector::Feature).
Definition: IKEffector.cpp:241
LogicComponent(Context *context)
Construct.
Definition: LogicComponent.cpp:36
Definition: RaycastVehicle.h:33
float Hue() const
Return hue mapped to range [0, 1.0).
Definition: Color.cpp:127
float animationLodTimer_
Animation LOD timer.
Definition: RibbonTrail.h:186
void OnSetEntity(Entity *entity)
Handle set entity.
Definition: SpriterInstance2D.cpp:171
virtual bool AddTile(const PODVector< unsigned char > &tileData)
Add tile to navigation mesh.
Definition: NavigationMesh.cpp:531
float Chroma() const
Return the colorfulness relative to the brightness of a similarly illuminated white.
Definition: Color.cpp:119
const String & GetString(const String &defaultValue=String::EMPTY) const
Return string value. The 'defaultValue' may potentially be returned as is, so it is the responsibilit...
Definition: JSONValue.h:202
bool IsActive() const
Return whether rigid body is active (not sleeping).
Definition: RigidBody.cpp:698
float distance_
Distance from ray origin.
Definition: OctreeQuery.h:213
float GetTime() const
Return time position.
Definition: AnimationState.h:139
void SetMaxMotorForce(float maxMotorForce)
Set maxmotor force.
Definition: ConstraintPrismatic2D.cpp:144
Variant GetVectorVariant(const String &name) const
Return a float, Vector or Matrix attribute as Variant.
Definition: XMLElement.cpp:970
unsigned GetMaxAgents() const
Get the maximum number of agents.
Definition: CrowdManager.h:123
Variant(const VariantMap &value)
Construct from a variant map.
Definition: Variant.h:457
bool neighborsDirty_
Terrain neighbor attributes dirty flag.
Definition: Terrain.h:327
const String & GetClassName() const
Return class name.
Definition: ScriptInstance.h:127
WindowModeParams secondaryWindowMode_
Secondary window mode to be applied on Graphics::ToggleFullscreen.
Definition: Graphics.h:723
PODVector< Constraint * > constraints_
Constraints in the world.
Definition: PhysicsWorld.h:320
~List()
Destruct.
Definition: List.h:200
Vector2 axis_
Axis.
Definition: ConstraintPrismatic2D.h:93
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: View.h:312
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: Animation.cpp:229
PODVector< Constraint * > constraints_
Constraints that refer to this rigid body.
Definition: RigidBody.h:279
PODVector< Vector3 > geometryCenters_
Geometry centers.
Definition: Model.h:218
const CustomVariantValue * GetCustomVariantValuePtr() const
Return const pointer to custom variant value.
Definition: Variant.h:1298
SharedArrayPtr< signed char > data_
Compressed sound data.
Definition: OggVorbisSoundStream.h:52
float timeStep_
Next frame timestep in seconds.
Definition: Engine.h:134
bool GetNodesWithTag(PODVector< Node * > &dest, const String &tag) const
Get nodes with specific tag from the whole scene, return false if empty.
Definition: Scene.cpp:720
float GetMaxRotationSpeed() const
Return particle maximum rotation speed.
Definition: ParticleEffect.h:308
Vector2 gravity_
Gravity.
Definition: ParticleEffect2D.h:276
Texture * GetParentTexture() const
Return parent texture.
Definition: RenderSurface.h:102
ListNodeBase * next_
Next node.
Definition: ListBase.h:50
FillMode GetFillMode() const
Return fill mode.
Definition: Camera.h:137
Mutex resourceMutex_
Mutex for thread-safe access to the resource directories, resource packages and resource dependencies...
Definition: ResourceCache.h:232
float GetMaxSideSlipSpeed() const
Get side speed which is considered sliding.
Definition: RaycastVehicle.cpp:363
float GetRadialAccelVariance() const
Return radial acceleration variance.
Definition: ParticleEffect2D.h:170
bool LoadWav(Deserializer &source)
Load WAV format sound data.
Definition: Sound.cpp:134
b2World * GetWorld()
Return the Box2D physics world.
Definition: PhysicsWorld2D.h:200
unsigned parentIndex_
Parent bone index.
Definition: Skeleton.h:64
void SetTimeStamp(bool enable)
Set whether to timestamp log messages.
Definition: Log.cpp:128
void SetAngleAttenuation(float innerAngle, float outerAngle)
Set angle attenuation parameters.
Definition: SoundSource3D.cpp:112
RGBA color.
Definition: Color.h:33
~Mutex()
Destruct.
Definition: Mutex.cpp:81
void BeginBlock(const char *name)
Begin timing a profiling block.
Definition: Profiler.h:183
ConstIterator End() const
Return iterator to the end.
Definition: HashSet.h:509
PODVector< const SourceBatch2D * > sourceBatches_
Source batches.
Definition: Renderer2D.h:56
static void RegisterObject(Context *context)
Register object factory.
Definition: SplinePath.cpp:55
IndexBuffer * indexBuffer_
Index buffer in use.
Definition: Graphics.h:779
const T & operator*() const
Dereference the key.
Definition: HashSet.h:109
Vector3 lastPosition_
Last interpolated position from the simulation.
Definition: RigidBody.h:295
void SetBrightness(float brightness)
Set light brightness multiplier. Both the color and specular intensity are multiplied with this....
Definition: Light.cpp:320
KeyValue * operator->() const
Point to the pair.
Definition: HashMap.h:149
void Update(float timeStep)
Update the UI logic. Called by HandlePostUpdate().
Definition: UI.cpp:317
~Technique() override
Destruct.
unsigned GetIndexStart() const
Return start index.
Definition: Geometry.h:86
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, UIElement *element, IntRect currentScissor)
Generate batches from an UI element recursively. Skip the cursor element.
Definition: UI.cpp:1168
UIElement * parent_
Parent element.
Definition: UIElement.h:682
void GetDrawablesOnlyInternal(RayOctreeQuery &query, PODVector< Drawable * > &drawables) const
Return drawable objects only for a threaded ray query, called internally.
Definition: Octree.cpp:284
HashMap< unsigned long long, unsigned > screenBufferAllocations_
Current screen buffer allocations by resolution and format.
Definition: Renderer.h:516
Physics constraint component. Connects two rigid bodies together, or one rigid body to a static point...
Definition: Constraint.h:48
XMLFile(Context *context)
Construct.
Definition: XMLFile.cpp:66
Plane() noexcept
Construct a degenerate plane with zero normal and parameter.
Definition: Plane.h:35
Spatial info.
Definition: SpriterData2D.h:245
ConstantBuffer * GetOrCreateConstantBuffer(ShaderType type, unsigned index, unsigned size)
Get or create a constant buffer. Will be shared between shaders if possible.
Definition: OGLGraphics.cpp:2336
void Restore()
Restore GPU objects and reinitialize state. Requires an open window. Used only on OpenGL.
Definition: OGLGraphics.cpp:2415
BoundingBox ReadBoundingBox()
Read a bounding box.
Definition: Deserializer.cpp:240
static void RegisterObject(Context *context)
Register object factory.
Definition: AnimationController.cpp:63
void CreateGeometries()
Create light volume geometries.
Definition: Renderer.cpp:1766
LockState
Vertex/index buffer lock state.
Definition: GraphicsDefs.h:125
void Prepare(View *view, Camera *camera, bool setModelTransform, bool allowDepthWrite) const
Prepare for rendering.
Definition: Batch.cpp:178
void Unlock()
Unlock the buffer and apply changes to the GPU buffer.
Definition: OGLVertexBuffer.cpp:207
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: ParticleEffect2D.h:260
float GetFov() const
Return spotlight field of view.
Definition: Light.h:256
void MarkNetworkUpdate() override
Mark for attribute check on the next network update.
Definition: Scene.cpp:199
IntVector2 tempPacketCounter_
Temporary variable to hold packet count in the next second, x - packets in, y - packets out.
Definition: Connection.h:341
void SetMaterialQuality(MaterialQuality quality)
Set material quality level. See the QUALITY constants in GraphicsDefs.h.
Definition: Renderer.cpp:342
bool operator==(const WeakPtr< U > &rhs) const
Test for equality with another weak pointer.
Definition: Ptr.h:430
2D collision shape component.
Definition: CollisionShape2D.h:35
WeakPtr< Camera > cullCamera_
Culling camera pointer.
Definition: Viewport.h:105
SharedPtr< ShaderPrecache > shaderPrecache_
Shader precache utility.
Definition: Graphics.h:859
float maxAgentRadius_
The maximum radius of any agent that will be added to the crowd.
Definition: CrowdManager.h:191
int refs_
Reference count. If below zero, the object has been destroyed.
Definition: RefCounted.h:53
void ResetEmissionTimer()
Reset the emission period timer.
Definition: ParticleEmitter.cpp:318
String GetTypeName() const
Return value's type name.
Definition: Variant.cpp:435
void SetVelocityIterations(int velocityIterations)
Set velocity iterations.
Definition: PhysicsWorld2D.cpp:420
const String & GetLoadingPercentStyle() const
Returns the loading percent style.
Definition: ProgressBar.h:78
Vector3 Abs() const
Return absolute vector.
Definition: Vector3.h:402
HashMap< StringHash, Vector< SharedPtr< ShaderVariation > > > extraPixelShaders_
Pixel shaders with extra defines from the renderpath.
Definition: Technique.h:184
btCompoundShape * GetParentCompoundShape()
Find the parent rigid body component and return its compound collision shape.
Definition: CollisionShape.cpp:993
unsigned fbo_
Frame buffer handle.
Definition: OGLGraphicsImpl.h:87
unsigned GetMode() const
Return currently shown elements.
Definition: DebugHud.h:88
static void SetActive(bool newActive)
Activate the event profiler to collect information. This incurs slight performance hit on each SendEv...
Definition: EventProfiler.h:71
DirtyBits(const DirtyBits &bits)
Copy-construct.
Definition: ReplicationState.h:55
unsigned mask_
Flags mask to represent properties of this mesh.
Definition: OffMeshConnection.h:88
float minZ_
Minimum Z value of the visible scene.
Definition: View.h:356
WeakPtr< Node > node_
Scene node pointer.
Definition: AnimationState.h:63
~ScriptInstance() override
Destruct.
Definition: ScriptInstance.cpp:71
bool Load(const XMLElement &element, const TileMapInfo2D &info)
Load from XML element.
Definition: TmxFile2D.cpp:232
bool nonFocusedMouseWheel_
Flag to switch mouse wheel event to be sent to non-focused element at cursor.
Definition: UI.h:397
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Obstacle.cpp:122
char Back() const
Return last char, or 0 if empty.
Definition: Str.h:394
@ UPDATE_ORIGINAL_POSE
Definition: IKSolver.h:105
Scene * GetScene() const
Return the scene associated with the material for shader parameter animation updates.
Definition: Material.cpp:1227
unsigned GetNumPoints() const
Return number of points (use for script).
Definition: TileMapDefs2D.cpp:190
float GetMass() const
Return mass.
Definition: RigidBody.h:162
XMLElement GetChild(const String &name=String::EMPTY) const
Return child element, or null if missing.
Definition: XMLElement.cpp:605
Animation * GetAnimation() const
Return animation.
Definition: AnimationState.h:105
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLConstantBuffer.cpp:53
String GetTextAttr() const
Return text attribute.
Definition: Text3D.cpp:556
IntVector2 Size() const
Return size.
Definition: Rect.h:400
HashSet< Drawable * > maxLightsDrawables_
Drawables that limit their maximum light count.
Definition: View.h:407
void RemoveGPUObject(GPUObject *object)
Remove a GPU object. Called by GPUObject.
Definition: Graphics.cpp:392
float shadowNearSplits_[MAX_LIGHT_SPLITS]
Shadow camera near splits (directional lights only).
Definition: View.h:72
void UpdateText(bool onResize=false)
Update text when text, font or spacing changed.
Definition: Text.cpp:487
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle the logic post update event.
Definition: LuaScriptInstance.cpp:677
void ReleaseBody()
Release body.
Definition: RigidBody2D.cpp:395
static void FreeImageData(unsigned char *pixelData)
Free an image file's pixel data.
Definition: Image.cpp:2348
Text * GetStatsText() const
Return rendering stats text.
Definition: DebugHud.h:76
TraversalMode
Traversal mode for rendering.
Definition: UIElement.h:96
const T & Back() const
Return const last element.
Definition: Vector.h:524
void SetCollisionEventMode(CollisionEventMode mode)
Set collision event signaling mode. Default is to signal when rigid bodies are active.
Definition: RigidBody.cpp:510
Node * GetChild(unsigned index) const
Return child scene node by index.
Definition: Node.cpp:1302
Vector< String > xmlAttributes_
XML format attribute data (as strings).
Definition: UnknownComponent.h:97
unsigned GetXPathResultIndex() const
Return current result index.
Definition: XMLElement.h:297
ShaderType type_
Shader type.
Definition: ShaderVariation.h:50
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:84
virtual CustomVariantValue * Clone() const
Clone.
Definition: Variant.h:195
Color finishColorVariance_
Finish color variance.
Definition: ParticleEffect2D.h:292
Sound stream that supports manual buffering of data from the main thread.
Definition: BufferedSoundStream.h:35
Color GetPixelTrilinear(float x, float y, float z) const
Return a trilinearly sampled 3D pixel color. X, Y and Z have the range 0-1.
Definition: Image.cpp:1564
String ToString() const
Return as string.
Definition: Vector4.cpp:37
bool GetSwapXY() const
Return swap X and Y.
Definition: StaticSprite2D.h:95
bool HasParameter(StringHash param) const
Return whether uses a shader parameter.
Definition: OGLShaderProgram.cpp:333
StringHash eventType_
Event type.
Definition: Connection.h:60
~SharedArrayPtr()
Destruct. Release the array reference.
Definition: ArrayPtr.h:61
bool GetBool(const String &name) const
Return bool attribute, or false if missing.
Definition: XMLElement.cpp:754
Allocator(unsigned initialCapacity=0)
Construct.
Definition: Allocator.h:75
void OnClickBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse click begin.
Definition: LineEdit.cpp:118
Skybox(Context *context)
Construct.
Definition: Skybox.cpp:38
bool Load(const XMLElement &source)
Load resource from XMLElement synchronously. Return true if successful.
Definition: ParticleEffect.cpp:132
void SetAgentMaxClimb(float maxClimb)
Set navigation agent max vertical climb.
Definition: NavigationMesh.cpp:262
bool IsTextCopyable() const
Return whether copy-paste operations are allowed.
Definition: LineEdit.h:111
void ResetDeepEnabled()
Reset enabled state to the node's remembered state prior to calling SetDeepEnabled.
Definition: Node.cpp:725
void SetAnchor(const Vector2 &anchor)
Set anchor.
Definition: ConstraintWheel2D.cpp:61
void ObstacleChanged(Obstacle *obstacle)
Used by Obstacle class to update itself.
Definition: DynamicNavigationMesh.cpp:1114
void SetParticlesAttr(const VariantVector &value)
Set particles attribute.
Definition: ParticleEmitter.cpp:369
SharedPtr< Image > image_
Image.
Definition: Cursor.h:78
void SetDrawDistance(float distance)
Set draw distance.
Definition: Drawable.cpp:173
bool SetAutoFade(const String &name, float fadeOutTime)
Set animation autofade at end (non-looped animations only). Zero time disables. Return true on succes...
Definition: AnimationController.cpp:416
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: Component.cpp:77
const TypeInfo * GetTypeInfo() const
Return type info of objects created by this factory.
Definition: Object.h:216
Tracking structure for event receivers.
Definition: Context.h:33
bool IsDirty() const
Return whether transform has changed and world transform needs recalculation.
Definition: Node.h:506
void HandleTerrainCreated(StringHash eventType, VariantMap &eventData)
Update terrain collision shape from the terrain component.
Definition: CollisionShape.cpp:1200
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix3x4.h:669
void InsertCommand(unsigned index, const RenderPathCommand &command)
Insert a command at a position.
Definition: RenderPath.cpp:479
String ReadLine()
Read a text line.
Definition: Deserializer.cpp:460
pugi::xpath_query * GetXPathQuery() const
Return pugixml xpath_query.
Definition: XMLElement.h:393
CullMode cullMode_
Culling mode.
Definition: OcclusionBuffer.h:197
CustomVariantValueImpl< T > MakeCustomValue(const T &value)
Make custom variant value.
Definition: Variant.h:275
static const IntVector3 FORWARD
(0,0,1) vector.
Definition: Vector3.h:176
const Vector2 & GetMaxParticleSize() const
Return particle maximum size.
Definition: ParticleEffect.h:284
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintDistance2D.h:75
bool AddResourceDir(const String &pathName, unsigned priority=PRIORITY_LAST)
Add a resource load directory. Optional priority parameter which will control search order.
Definition: ResourceCache.cpp:98
Per-user component network replication state.
Definition: ReplicationState.h:145
bool IsServer() const
Return whether is in server mode.
Definition: NamedPipe.h:68
const VariantVector & GetControlPointIdsAttr() const
Return Control Point Node IDs attribute.
Definition: SplinePath.h:105
bool BeginLoadJSON(Deserializer &source)
Helper function for loading JSON files.
Definition: Material.cpp:327
void SetUseFixtureMass(bool useFixtureMass)
Set whether to automatically calculate mass and inertia from collision shapes. Default true.
Definition: RigidBody2D.cpp:169
Vector3 GetAnisotropicFriction() const
Return anisotropic friction.
Definition: RigidBody.cpp:668
unsigned profilerMaxDepth_
Profiler max block depth.
Definition: DebugHud.h:127
void Toggle()
Toggle visibility.
Definition: Console.cpp:187
Iterator Insert(const ConstIterator &it)
Insert a key by iterator. Return iterator to the value.
Definition: HashSet.h:334
const String & GetPackageCacheDir() const
Return the package download cache directory.
Definition: Network.h:128
SharedPtr< Geometry > maxLodGeometry_
Geometry that is locked to the max LOD level. Used for decals.
Definition: TerrainPatch.h:120
bool PlayExclusive(const String &name, unsigned char layer, bool looped, float fadeTime=0.0f)
Play an animation, set full target weight and fade out all other animations on the same layer....
Definition: AnimationController.cpp:197
String vertexShaderDefines_
Vertex shader defines.
Definition: Material.h:293
float rowSpacing_
Row spacing.
Definition: Text.h:229
void SetRotation(const Quaternion &rotation)
Set offset rotation.
Definition: CollisionShape.cpp:759
void SetAspectRatio(float aspectRatio)
Set aspect ratio manually. Disables the auto aspect ratio -mode.
Definition: Camera.cpp:157
void SortFrontToBack()
Sort instanced and non-instanced draw calls front to back.
Definition: Batch.cpp:746
void UpdateAttributeDefaultValue(StringHash objectType, const char *name, const Variant &defaultValue)
Update object attribute's default value.
Definition: Context.cpp:234
HashMap< Camera *, Matrix3x4 > customWorldTransforms_
Custom world transform per camera.
Definition: Skybox.h:53
int ReadInt(const XMLElement &element, const String &name) const
Read integer.
Definition: ParticleEffect2D.cpp:520
SharedPtr< Resource > resource_
Resource.
Definition: BackgroundLoader.h:43
Time(Context *context)
Construct.
Definition: Timer.cpp:48
bool reuseShadowMaps_
Shadow map reuse flag.
Definition: Renderer.h:592
void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag begin.
Definition: Slider.cpp:113
bool NotNull() const
Check if the pointer is not null.
Definition: Ptr.h:205
void * GetResolveTexture() const
Return resolve texture. Only used on Direct3D11.
Definition: Texture.h:163
void SetRotationEndVariance(float rotationEndVariance)
Set rotation end variance.
Definition: ParticleEffect2D.cpp:469
Corner
UI element corners.
Definition: UIElement.h:55
void DeleteChild(unsigned index)
Delete child octant.
Definition: Octree.cpp:127
CustomGeometry(Context *context)
Construct.
Definition: CustomGeometry.cpp:47
CollisionEventMode collisionEventMode_
Collision event signaling mode.
Definition: RigidBody.h:293
void RemoveAllEventHandlers() override
Remove all scripted event handlers.
Definition: LuaScript.cpp:213
UIElement * separatorLayout_
Separator layout.
Definition: FileSelector.h:175
float length_
The length of the SplinePath.
Definition: SplinePath.h:134
bool SetVector4(const String &name, const Vector4 &value)
Set a Vector4 attribute.
Definition: XMLElement.cpp:533
void OnSetAttribute(const AttributeInfo &attr, const Variant &src) override
Handle attribute write access.
Definition: ScriptInstance.cpp:92
Component * SafeCreateComponent(const String &typeName, StringHash type, CreateMode mode, unsigned id)
Create component, allowing UnknownComponent if actual type is not supported. Leave typeName empty if ...
Definition: Node.cpp:2062
void ApplyImpulse(const Vector3 &impulse)
Apply impulse to center of mass.
Definition: RigidBody.cpp:543
HashSet< unsigned > receivedFragments_
Already received fragments.
Definition: Connection.h:76
unsigned obstacleId_
Id received from tile cache.
Definition: Obstacle.h:89
Vector3 end_
End position.
Definition: DebugRenderer.h:60
bool stereo_
Stereo flag.
Definition: SoundStream.h:76
void ReleaseModule()
Release the script module.
Definition: ScriptFile.cpp:955
void SetID(unsigned id)
Set ID. Called by Scene.
Definition: Component.cpp:254
bool WriteInt(int value)
Write a 32-bit integer.
Definition: Serializer.cpp:41
float GetAnimationLodBias() const
Return animation LOD bias.
Definition: AnimatedModel.h:121
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: CustomGeometry.cpp:164
Timer useTimer_
Last used timer.
Definition: Resource.h:106
void * Lock(unsigned start, unsigned count, bool discard=false)
Lock the buffer for write-only editing. Return data pointer if successful. Optionally discard data ou...
Definition: OGLIndexBuffer.cpp:162
Vector< Billboard * > sortedBillboards_
Billboard pointers for sorting.
Definition: BillboardSet.h:207
bool sendEventOnFailure_
Whether to send failure event.
Definition: BackgroundLoader.h:49
bool IsConnected() const
Return true when the connection object is connected to the associated database.
Definition: ODBCConnection.h:56
void UpdateLayout()
Manually update layout. Should not be necessary in most cases, but is provided for completeness.
Definition: UIElement.cpp:1095
int finishBackgroundResourcesMs_
How many milliseconds maximum per frame to spend on finishing background loaded resources.
Definition: ResourceCache.h:256
Physics simulation world component. Should be added only to the root scene node.
Definition: PhysicsWorld.h:128
static const Rect ZERO
Zero-sized rect.
Definition: Rect.h:268
void SetCcdMotionThreshold(float threshold)
Set continuous collision detection motion-per-simulation-step threshold. 0 disables,...
Definition: RigidBody.cpp:429
Vector3 vertices_[NUM_FRUSTUM_VERTICES]
Frustum vertices.
Definition: Frustum.h:184
float cellSize_
Cell size.
Definition: NavigationMesh.h:314
void SetParameters(XMLFile *file)
Set additional parameters from an XML file.
Definition: Texture.cpp:171
SharedPtr< RenderPath > defaultRenderPath_
Default renderpath.
Definition: Renderer.h:476
void SetMotorSpeed(float motorSpeed)
Set motor speed.
Definition: ConstraintPrismatic2D.cpp:159
ResourceRef GetRampTextureAttr() const
Return ramp texture attribute.
Definition: Light.cpp:532
void SetResolveDirty(bool enable)
Set or clear the need resolve flag. Called internally by Graphics.
Definition: Texture.h:172
void SetAutoVisibleOnError(bool enable)
Automatically set console to visible when receiving an error log message.
Definition: Console.h:60
unsigned GetZoneMask() const
Return zone mask.
Definition: Drawable.h:204
void AssignBoneNodes()
Assign skeleton and animation bone node references as a postprocess. Called by ApplyAttributes.
Definition: AnimatedModel.cpp:979
float a_
Alpha value.
Definition: Color.h:262
bool IsOccluder() const
Return occluder flag.
Definition: Drawable.h:213
unsigned GetChecksum() override
Return a checksum of the file contents using the SDBM hash algorithm.
Definition: File.cpp:355
SharedPtr< UIElement > LoadLayout(Deserializer &source, XMLFile *styleFile=nullptr)
Load a UI layout from an XML file. Optionally specify another XML file for element style....
Definition: UI.cpp:573
void GetCollidingBodies(PODVector< RigidBody * > &result) const
Return colliding rigid bodies from the last simulation step. Only returns collisions that were sent a...
Definition: RigidBody.cpp:703
Vector3 GetRawNormal(int x, int z) const
Get slope-based terrain normal at position.
Definition: Terrain.cpp:1342
float DistanceToPoint(const Vector3 &point) const
Calculate distance to another position vector.
Definition: Vector3.h:383
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: BillboardSet.cpp:245
Variant(const IntRect &value)
Construct from an integer rect.
Definition: Variant.h:475
long long GetInt64(const String &name) const
Return a long long integer attribute, or zero if missing.
Definition: XMLElement.cpp:817
unsigned texIndex_
Current texture animation index.
Definition: ParticleEmitter.h:50
Thread()
Construct. Does not start the thread yet.
Definition: Thread.cpp:63
VariantVector GetQueryFilterTypesAttr() const
Return all the filter types configured in the crowd as attribute.
Definition: CrowdManager.cpp:453
WeakPtr< TerrainPatch > north_
North neighbor patch.
Definition: TerrainPatch.h:128
Shadow map focusing parameters.
Definition: Light.h:119
Color hoverColor_
Hover background color.
Definition: UISelectable.h:61
JSONValue(double value)
Construct with a double.
Definition: JSONValue.h:107
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: RibbonTrail.cpp:864
PODVector< Light * > vertexLights_
Per-vertex lights.
Definition: Batch.h:307
float GetAttributeAnimationSpeed(const String &name) const
Return attribute animation speed by name.
Definition: ObjectAnimation.cpp:247
void SetShapeType(ShapeType type)
Set shape type.
Definition: CollisionShape.cpp:727
const SpatialInfo & GetSpatialInfo() const
Return root spatial info.
Definition: SpriterInstance2D.h:74
void CalculateViewport()
Calculate viewport transform.
Definition: OcclusionBuffer.cpp:578
2D prismatic constraint component.
Definition: ConstraintPrismatic2D.h:31
static void RegisterObject(Context *context)
Register object factory. drawable2d must be registered first.
Definition: ParticleEmitter2D.cpp:61
bool GetFastMode() const
Return whether uses fast mode. Fast mode uses a simpler allocation scheme which may waste free space,...
Definition: AreaAllocator.h:53
static long long frequency
High-resolution timer frequency.
Definition: Timer.h:74
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:32
bool Allocate(const BoundingBox &boundingBox, unsigned maxTiles) override
Allocate the navigation mesh without building any tiles. Bounding box is not padded....
Definition: DynamicNavigationMesh.cpp:238
void SetOffset(const IntVector2 &offset)
Set offset.
Definition: Sprite2D.cpp:128
ShaderProgram * shaderProgram_
Shader program in use.
Definition: OGLGraphicsImpl.h:152
static void LoadShaders(Graphics *graphics, Deserializer &source)
Load shaders from an XML file.
Definition: ShaderPrecache.cpp:107
unsigned GetFormat() const
Return render texture pixel format.
Definition: View3D.h:62
String ToString(const String &indendation="\t") const
Save to a string.
Definition: JSONFile.cpp:241
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: TerrainPatch.cpp:155
AttributeHandle()=default
Construct default.
const String & GetPixelShader() const
Return pixel shader name.
Definition: Technique.h:117
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Add debug geometry to the debug renderer.
Definition: TileMapLayer2D.cpp:58
float animationLodBias_
Animation LOD bias.
Definition: BillboardSet.h:158
Vector2 linearOffset_
Linear offset.
Definition: ConstraintMotor2D.h:76
unsigned GetNumAnimationStates() const
Return number of animation states.
Definition: AnimatedModel.h:109
bool SaveJPG(const String &fileName, int quality) const
Save in JPG format with specified quality. Return true if successful.
Definition: Image.cpp:1306
HashMap< unsigned, Component * > replicatedComponents_
Replicated components by ID.
Definition: Scene.h:288
bool GetForceAutoHint() const
Return whether is using forced autohinting.
Definition: UI.h:203
bool ReadLatestDataUpdate(Deserializer &source)
Read and apply a network latest data update. Return true if attributes were changed.
Definition: Serializable.cpp:862
2D physics constraint component.
Definition: Constraint2D.h:36
IntRect scissorRect_
Scissor test rectangle.
Definition: Graphics.h:825
TextureFilterMode
Texture filtering mode.
Definition: GraphicsDefs.h:230
Iterator Begin()
Return iterator to the beginning.
Definition: Vector.h:491
bool assignBonesPending_
Bone nodes assignment pending flag.
Definition: AnimatedModel.h:259
void SetLowerAngle(float lowerAngle)
Set lower angle.
Definition: ConstraintRevolute2D.cpp:86
PODVector< unsigned char > byteCode_
Shader bytecode. Needed for inspecting the input signature and parameters. Not used on OpenGL.
Definition: ShaderVariation.h:168
Node * ReserveNode(const T &value)
Reserve a node with initial value.
Definition: List.h:482
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: UI.cpp:2054
void SetInternal(bool enable)
Mark as internally (programmatically) created. Used when an element composes itself out of child elem...
Definition: UIElement.cpp:1444
Vector< SourceBatch > batches_
Draw call source data.
Definition: Drawable.h:333
int scriptObjectRef_
Lua reference to script object.
Definition: LuaScriptInstance.h:183
Terrain * GetOwner() const
Return owner terrain.
Definition: TerrainPatch.cpp:268
static HashMap< String, unsigned > passIndices
Pass index assignments.
Definition: Technique.h:287
Bone in a skeleton.
Definition: Skeleton.h:46
void SetWidth(int width)
Set text width. Only has effect in word wrap mode.
Definition: Text3D.cpp:313
float uiScale_
Current scale of UI.
Definition: UI.h:437
const float * Data() const
Return float data.
Definition: Matrix2.h:203
~VertexBuffer() override
Destruct.
Definition: VertexBuffer.cpp:47
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Light.cpp:236
void PatchAdd(const pugi::xml_node &patch, pugi::xpath_node &original) const
Add an node in the Patch.
Definition: XMLFile.cpp:228
pugi::xpath_variable_set * GetXPathVariableSet() const
Return pugixml xpath_variable_set.
Definition: XMLElement.h:396
static void RegisterObject(Context *context)
Register object factory.
Definition: ScriptInstance.cpp:76
static void RegisterObject(Context *context)
Register object factory.
Definition: AnimatedSprite2D.cpp:72
unsigned GetNumDownloads() const
Return number of package downloads remaining.
Definition: Connection.cpp:1126
unsigned GetNumInstances() const
Return the combined amount of instances.
Definition: Batch.cpp:891
CollisionEdge2D(Context *context)
Construct.
Definition: CollisionEdge2D.cpp:38
HashMap< StringHash, ShaderParameter > shaderParameters_
Shader parameters.
Definition: OGLShaderProgram.h:95
@ DD_SOURCE_AND_TARGET
Drag and drop source and target.
Definition: UIElement.h:113
const Color & GetAmbientStartColor()
Return ambient start color. Not safe to call from worker threads due to possible octree query.
Definition: Zone.cpp:189
Node * GetObjectNode(unsigned index) const
Return object node (for object group only).
Definition: TileMapLayer2D.cpp:319
Database(Context *context)
Construct.
Definition: Database.cpp:31
void SetCullMode(CullMode mode)
Set hardware culling mode.
Definition: OGLGraphics.cpp:1786
StringHash ReadStringHash()
Read a 32-bit StringHash.
Definition: Deserializer.cpp:271
@ FM_NOTFOCUSABLE
Is not focusable and does not affect existing focus.
Definition: UIElement.h:75
void SetPatchSizeAttr(int value)
Set patch size attribute.
Definition: Terrain.cpp:804
unsigned boundVBO_
Currently bound vertex buffer object.
Definition: OGLGraphicsImpl.h:128
StringHash eventType_
Event type.
Definition: ValueAnimation.h:62
signed char * end_
Sound data end.
Definition: Sound.h:120
SharedArrayPtr< unsigned char > data_
Vertex data.
Definition: Model.h:76
SDL_Cursor * osCursor_
OS cursor.
Definition: Cursor.h:86
PListValueMap & ConvertToValueMap()
Convert to value map (internal use only).
Definition: PListFile.cpp:252
ShaderType GetShaderType() const
Return shader type.
Definition: ShaderVariation.h:105
float GetMinRotationSpeed() const
Return particle minimum rotation speed.
Definition: ParticleEffect.h:305
bool GetOcclusion() const
Return whether should render occlusion.
Definition: Material.h:247
const String & GetPath() const
Return current path.
Definition: FileSelector.h:114
Audio subsystem.
Definition: Audio.h:40
PrimitiveType primitiveType_
Primitive type.
Definition: Geometry.h:121
void ReleaseRef()
Release the weak reference. Delete the Refcount structure if necessary.
Definition: Ptr.h:520
4x4 matrix for arbitrary linear transforms including projection.
Definition: Matrix4.h:38
static const IntVector2 ONE
(1,1) vector.
Definition: Vector2.h:171
HashMap< StringHash, SharedPtr< ShaderParameterAnimationInfo > > shaderParameterAnimationInfos_
Shader parameters animation infos.
Definition: Material.h:291
SharedPtr< Text > modeText_
Rendering mode text.
Definition: DebugHud.h:115
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: UI.h:351
bool HasMutableGlyphs() const override
Return if font face uses mutable glyphs.
Definition: FontFaceFreeType.h:48
const IntVector2 & GetCoordinates() const
Return patch coordinates.
Definition: TerrainPatch.h:104
unsigned westID_
Node ID of west neighbor.
Definition: Terrain.h:321
void ReleaseFontFaces()
Force release of font faces when global font properties change.
Definition: UI.cpp:1335
bool NotNull() const
Check if the pointer is not null.
Definition: ArrayPtr.h:376
UIElement * GetDragElement(unsigned index)
Return the drag element at index.
Definition: UI.cpp:911
float GetLifetime() const
Return tail time to live.
Definition: RibbonTrail.h:152
2D friction constraint component.
Definition: ConstraintFriction2D.h:31
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RigidBody.cpp:137
API-specific GPU object representation.
Definition: GPUObject.h:33
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: ScriptInstance.cpp:227
void ProcessItems(unsigned threadIndex)
Process work items until shut down. Called by the worker threads.
Definition: WorkQueue.cpp:307
WeakPtr< Terrain > west_
West neighbor terrain.
Definition: Terrain.h:263
SharedArrayPtr< unsigned char > GetShadowDataShared() const
Return shared array pointer to the CPU memory shadow data.
Definition: IndexBuffer.h:86
float Top() const
Return top coordinate.
Definition: Rect.h:250
void AddWeight(float delta)
Modify blending weight.
Definition: AnimationState.cpp:245
bool subpixel_
Use subpixel glyph positioning?
Definition: FontFaceFreeType.h:65
virtual PODVector< unsigned char > GetTileData(const IntVector2 &tile) const
Return tile data.
Definition: NavigationMesh.cpp:524
void SetAspectRatio(float aspectRatio)
Set spotlight aspect ratio.
Definition: Light.cpp:340
float x_
X coordinate.
Definition: Vector2.h:374
const T * operator->() const
Point to the key.
Definition: HashSet.h:168
~LinkedList()
Destruct.
Definition: LinkedList.h:74
unsigned GetNumAttributes() const
Return number of attributes.
Definition: Serializable.cpp:988
bool IsCompressed() const
Return whether the texture format is compressed.
Definition: OGLTexture.cpp:181
void DefineShape(const String &shape, Image *image, const IntRect &imageRect, const IntVector2 &hotSpot)
Define a shape.
Definition: Cursor.cpp:137
signed char * GetEnd() const
Return sound data end.
Definition: Sound.h:79
Color color_
Color.
Definition: ParticleEmitter2D.h:50
void RaycastSingle(PhysicsRaycastResult &result, const Ray &ray, float maxDistance, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world raycast and return the closest hit.
Definition: PhysicsWorld.cpp:400
void SetTextureEdgeOffset(float offset)
Set texture edge offset in pixels. This affects the left/right and top/bottom edges equally to preven...
Definition: Sprite2D.cpp:133
bool RemoveTag(const String &tag)
Remove specific tag. Return true if existed.
Definition: UIElement.cpp:1485
T * ptr_
Pointer to the object.
Definition: Ptr.h:536
Abstract stream for writing.
Definition: Serializer.h:44
void SetUseGravity(bool enable)
Set whether gravity is applied to rigid body.
Definition: RigidBody.cpp:439
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: DecalSet.cpp:210
Abstract stream for reading.
Definition: Deserializer.h:33
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: DecalSet.cpp:1159
const Vector2 & GetSize() const
Return size.
Definition: CollisionBox2D.h:55
Variant BezierInterpolation(const Vector< Variant > &knots, float t) const
Perform Bezier interpolation on the spline.
Definition: Spline.cpp:143
bool IsInitialized() const
Return whether has been initialized with valid navigation data.
Definition: NavigationMesh.h:243
IntVector2 sumPos
Sum of all touch locations.
Definition: UI.h:237
SLNet::RakNetGUID * remoteGUID_
Remote GUID information.
Definition: Network.h:190
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix3.h:185
OctreeQueryResult()
Construct with defaults.
Definition: OctreeQuery.h:160
unsigned SystemCommandAsync(const String &commandLine)
Run a program using the command interpreter asynchronously. Return a request ID or M_MAX_UNSIGNED if ...
Definition: FileSystem.cpp:395
~Terrain() override
Destruct.
int velocityIterations_
Velocity iterations.
Definition: PhysicsWorld2D.h:224
virtual void OnAttributeAnimationAdded()=0
Handle attribute animation added.
Camera * GetCullCamera() const
Return the culling camera. If null, the viewport camera will be used for culling (normal case).
Definition: Viewport.cpp:127
void SetClipPlane(const Plane &plane)
Set custom clipping plane in world space.
Definition: Camera.cpp:240
bool operator!=(const HashMap< T, U > &rhs) const
Test for inequality with another hash map.
Definition: HashMap.h:313
void ResetRenderTargets()
Reset all rendertargets, depth-stencil surface and viewport.
Definition: OGLGraphics.cpp:1613
void Init()
Init the vehicle component after creation.
Definition: RaycastVehicle.cpp:282
void SetWorldRotation2D(float rotation)
Set rotation in world space (for Urho2D).
Definition: Node.h:197
Matrix4(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23, float v30, float v31, float v32, float v33) noexcept
Construct from values.
Definition: Matrix4.h:121
virtual ~Serializer()
Destruct.
void SetNearClip(float nearClip)
Set near clip distance.
Definition: Camera.cpp:114
SharedPtr< Sprite2D > sprite_
Sprite (for tile).
Definition: TileMapDefs2D.h:224
LineEdit * GetFileNameEdit() const
Return filename editor.
Definition: FileSelector.h:96
const String & GetPath() const
Return the path being watched, or empty if not watching.
Definition: FileWatcher.h:62
Rendering frame update parameters.
Definition: Drawable.h:68
JSONValue()
Construct null value.
Definition: JSONValue.h:78
void AdjustScreenMode(int &newWidth, int &newHeight, ScreenModeParams ¶ms, bool &maximize) const
Adjust parameters according to the platform. Fill in missing paramters and resolve possible conflicts...
Definition: Graphics.cpp:490
void Disconnect(DbConnection *connection)
Disconnect a database connection. The connection object pointer should not be used anymore after this...
Definition: Database.cpp:78
Console window with log history and command line prompt.
Definition: Console.h:42
PackageDownload()
Construct with defaults.
Definition: Connection.cpp:58
Vector3 position_
World-space position of the path point.
Definition: NavigationMesh.h:84
Vector3 origin_
Ray origin.
Definition: Ray.h:110
float shadowFarSplits_[MAX_LIGHT_SPLITS]
Shadow camera far splits (directional lights only).
Definition: View.h:74
const KeyValue & operator*() const
Dereference the pair.
Definition: HashMap.h:214
unsigned numPrimitives_
Number of primitives this frame.
Definition: Graphics.h:761
ConstraintWeld2D(Context *context)
Construct.
Definition: ConstraintWeld2D.cpp:37
void Define(const Vector4 &plane)
Define from a 4-dimensional vector, where the w coordinate is the plane parameter.
Definition: Plane.h:82
unsigned anisotropy_
Texture anisotropy level.
Definition: Texture.h:229
String vertexShaderName_
Vertex shader name.
Definition: Technique.h:166
Node * CloneRecursive(Node *parent, SceneResolver &resolver, CreateMode mode)
Clone node recursively.
Definition: Node.cpp:2181
PODVector< CollisionShape * > collisionShapes_
Collision shapes in the world.
Definition: PhysicsWorld.h:318
void SetCommand(unsigned index, const RenderPathCommand &command)
Assign command at index.
Definition: RenderPath.cpp:466
bool WritePackedQuaternion(const Quaternion &value)
Write a quaternion with each component packed in 16 bits.
Definition: Serializer.cpp:142
HashMap< unsigned long long, LightBatchQueue > vertexLightQueues_
Per-vertex light queues.
Definition: View.h:417
void Push(const T &value)
Add an element at the end.
Definition: Vector.h:840
float GetAgentMaxSlope() const
Return navigation agent max slope.
Definition: NavigationMesh.h:216
Node * Next() const
Return next node.
Definition: HashMap.h:97
@ FONT_HINT_LEVEL_LIGHT
Light hinting. FreeType will pixel-align fonts vertically, but not horizontally.
Definition: UI.h:42
void SetAgentHeight(float height)
Set navigation agent height.
Definition: NavigationMesh.cpp:248
~Model() override
Destruct.
unsigned GetNumBatches() const
Return number of batches drawn this frame.
Definition: Graphics.h:405
ResourceRef GetZoneTextureAttr() const
Return zone texture attribute.
Definition: Zone.cpp:224
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: ParticleEmitter2D.cpp:194
void SetOtherBody(RigidBody *body)
Set other body to connect to. Set to null to connect to the static world.
Definition: Constraint.cpp:159
bool GetBringToFront() const
Return whether should be brought to front when focused.
Definition: UIElement.h:490
bool GetExecuteConsoleCommands() const
Return whether is executing engine console commands as OS-specific system command.
Definition: FileSystem.h:83
float GetTemperature() const
Return the temperature of the light in Kelvin.
Definition: Light.h:226
bool GetUseClipPlane() const
Return whether a custom clipping plane is in use.
Definition: Graphics.h:561
SharedPtr< StaticModel > model_
Model created by this component. If node already has StaticModel then this will be null.
Definition: UIComponent.h:71
float Bottom() const
Return bottom coordinate.
Definition: Rect.h:256
void Clear()
Clear mainline key and timeline keys.
Definition: SpriterInstance2D.cpp:296
bool FromString(const String &source)
Deserialize from a string. Return true if successful.
Definition: XMLFile.cpp:162
bool GetDrawShadows() const
Return whether drawing shadows is enabled.
Definition: Renderer.h:274
@ LT_TILE_LAYER
Tile layer.
Definition: TileMapDefs2D.h:78
bool GetUseScreenKeyboard() const
Return whether focusing a LineEdit will show the on-screen keyboard.
Definition: UI.h:197
static const IntVector2 RIGHT
(1,0) vector.
Definition: Vector2.h:165
bool WriteMatrix3(const Matrix3 &value)
Write a Matrix3.
Definition: Serializer.cpp:154
SharedArrayPtr< signed char > data_
Sound data.
Definition: Sound.h:116
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: CustomGeometry.h:170
Marks the root or "beginning" of an IK chain or multiple IK chains. The solving algorithm can be set ...
Definition: IKSolver.h:42
Orientation GetOrientation() const
Return orientation type.
Definition: Slider.h:79
void HandleListViewKey(StringHash eventType, VariantMap &eventData)
Handle a key press from the listview.
Definition: DropDownList.cpp:330
void RemoveRigidBody(RigidBody *body)
Remove a rigid body. Called by RigidBody.
Definition: PhysicsWorld.cpp:723
SharedArrayPtr< unsigned char > readBuffer_
Read buffer for Android asset or compressed file loading.
Definition: File.h:131
bool SetColor(const String &name, const Color &value)
Set a color attribute.
Definition: XMLElement.cpp:347
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: LuaFile.cpp:76
unsigned rows_
Number of rows.
Definition: Image.h:77
int strokeThickness_
Text effect stroke thickness.
Definition: Text.h:243
void SetMaxRotation(float rotation)
Set particle maximum rotation.
Definition: ParticleEffect.cpp:565
bool executeConsoleCommands_
Flag for executing engine console commands as script code. Default to true.
Definition: LuaScript.h:125
void SetRotationSilent(const Quaternion &rotation)
Set position in parent space silently without marking the node & child nodes dirty....
Definition: Node.h:628
void SetOccludee(bool enable)
Set occludee flag for patches.
Definition: Terrain.cpp:500
JSONValue(float value)
Construct with a float.
Definition: JSONValue.h:101
Variant SplineInterpolation(unsigned index1, unsigned index2, float scaledTime) const
Spline interpolation.
Definition: ValueAnimation.cpp:437
void PrepareDraw()
Process dirtied state before draw.
Definition: OGLGraphics.cpp:2826
float GetTextureEdgeOffset() const
Return texture edge offset.
Definition: Sprite2D.h:77
bool connectPending_
Connection pending flag.
Definition: Connection.h:331
ShapeType GetShapeType() const
Return shape type.
Definition: CollisionShape.h:221
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: PhysicsWorld.cpp:229
void MarkTextDirty()
Mark text & geometry dirty.
Definition: Text3D.cpp:531
Vector< Bone > bones_
Bones.
Definition: Skeleton.h:140
void SetTypeName(const String &typeName)
Initialize the type name. Called by Node when loading.
Definition: UnknownComponent.cpp:242
Vector< LightBatchQueue > lightQueues_
Per-pixel light queues.
Definition: View.h:415
void SetNumViewports(unsigned num)
Set number of backbuffer viewports to render.
Definition: Renderer.cpp:280
Hash map template class.
Definition: HashMap.h:37
SharedPtr< SpriteSheet2D > spriteSheet_
Sprite sheet.
Definition: AnimationSet2D.h:118
float b_
Blue value.
Definition: Color.h:260
Shared pointer template class with intrusive reference counting.
Definition: Ptr.h:36
Scene(Context *context)
Construct.
Definition: Scene.cpp:58
String(const wchar_t *str)
Construct from a null-terminated wide character array.
Definition: Str.h:107
unsigned char * buffer_
Pointer to the memory area.
Definition: MemoryBuffer.h:58
ValueAnimationInfo(ValueAnimation *animation, WrapMode wrapMode, float speed)
Construct without target object.
Definition: ValueAnimationInfo.cpp:34
void SetAutoLocalizable(bool enable)
The text will be automatically translated. The text value used as string identifier.
Definition: Text.cpp:338
unsigned GetNumPasses() const
Return number of passes.
Definition: Technique.cpp:456
void AddTextureFrame(const TextureFrame &textureFrame)
Add a texture frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:691
static const Vector2 & GetPixelUVOffset()
Return UV offset required for pixel perfect rendering.
Definition: Graphics.h:640
void Pop()
Remove the last element.
Definition: Vector.h:278
static void RegisterObject(Context *context)
Register object factory.
Definition: Shader.cpp:79
void SetRollingFriction(float friction)
Set rolling friction coefficient.
Definition: RigidBody.cpp:392
float GetSpeedVariance() const
Return speed variance.
Definition: ParticleEffect2D.h:146
Font glyph description.
Definition: FontFace.h:37
WrapMode wrapMode_
Wrap mode.
Definition: ValueAnimationInfo.h:90
float animationLodBias_
Animation LOD bias.
Definition: ParticleEffect.h:373
Vector2 ReadVector2(const XMLElement &element, const String &name) const
Read Vector2.
Definition: ParticleEffect2D.cpp:536
Image(Context *context)
Construct empty.
Definition: Image.cpp:254
void RemoveAgentFromCrowd()
Remove agent from crowd.
Definition: CrowdAgent.cpp:317
Variant(const char *value)
Construct from a C string.
Definition: Variant.h:415
Base class for object factories.
Definition: Object.h:199
void AddEventHandler(const String &eventName, int index) override
Add a scripted event handler by function at the given stack index.
Definition: LuaScript.cpp:158
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintGear2D.cpp:103
virtual void TestDrawables(Drawable **start, Drawable **end, bool inside)=0
Intersection test for drawables.
bool fullscreen_
Whether to use fullscreen mode.
Definition: Graphics.h:84
VariantVector GetBillboardsAttr() const
Return billboards attribute.
Definition: BillboardSet.cpp:432
Subsystem for file and directory operations and access control.
Definition: FileSystem.h:42
bool Empty() const
Return whether list is empty.
Definition: List.h:420
const Color & GetColorAttr() const
Get color attribute. Uses just the top-left color.
Definition: Text3D.h:173
void HandleMouseWheel(StringHash eventType, VariantMap &eventData)
Handle mouse wheel event.
Definition: UI.cpp:1839
bool trigger_
Trigger flag.
Definition: RigidBody.h:301
void SetForceGL2(bool enable)
Set forced use of OpenGL 2 even if OpenGL 3 is available. Must be called before setting the screen mo...
Definition: OGLGraphics.cpp:537
AsyncLoadState
Asynchronous loading state of a resource.
Definition: Resource.h:39
~Text3D() override
Destruct.
int GetNumIterations() const
Return number of constraint solver iterations.
Definition: PhysicsWorld.cpp:708
float timeStep_
Time elapsed since last frame.
Definition: Drawable.h:73
bool GetBringToBack() const
Return whether should be put to background when another element is focused.
Definition: UIElement.h:493
int GetNumLanguages() const
Return the number of languages.
Definition: Localization.h:43
void ValidateShadowBias()
Validate shadow bias.
Definition: Light.h:345
unsigned basePassIndex_
Index of the opaque forward base pass.
Definition: View.h:423
float time_
Trigger time.
Definition: Animation.h:111
const String & GetAnimation() const
Return animation name.
Definition: AnimatedSprite2D.h:88
void SetMaxWidth(int width)
Set maximum width.
Definition: UIElement.cpp:637
void SetSpacing(const Vector3 &spacing)
Set vertex (XZ) and height (Y) spacing.
Definition: Terrain.cpp:197
void RegisterRemoteEvent(StringHash eventType)
Register a remote event as allowed to be received. There is also a fixed blacklist of events that can...
Definition: Network.cpp:592
const BoundingBox & GetWorldBoundingBox()
Return world-space bounding box.
Definition: Drawable.cpp:253
virtual bool SaveXML(XMLElement &dest) const
Save as XML data. Return true if successful.
Definition: Serializable.cpp:507
XPathResultSet Evaluate(const XMLElement &element) const
Definition: XMLElement.cpp:1194
int simulatedLatency_
Simulated latency (send delay) in milliseconds.
Definition: Network.h:166
const Vector< SharedPtr< VertexBuffer > > & GetMorphVertexBuffers() const
Return all morph vertex buffers.
Definition: AnimatedModel.h:130
void RemoveEventHandlersExcept(const Vector< String > &exceptionNames) override
Remove all scripted event handlers, except those listed.
Definition: LuaScript.cpp:218
Text * messageText_
Message text element.
Definition: MessageBox.h:71
void SetUseDerivedOpacity(bool enable)
Set whether parent elements' opacity affects opacity. Default true.
Definition: UIElement.cpp:882
bool SetBoundingBox(const BoundingBox &value)
Set a BoundingBox attribute.
Definition: XMLElement.cpp:325
const PODVector< unsigned char > & GetNetAnimationsAttr() const
Return animations attribute for network replication.
Definition: AnimationController.cpp:761
float GetCellHeight() const
Return cell height.
Definition: NavigationMesh.h:204
void HandleScriptEvent(StringHash eventType, VariantMap &eventData)
Handle an event in script.
Definition: ScriptInstance.cpp:932
void Reset()
Reset the particle emitter completely. Removes current particles, sets emitting state on,...
Definition: ParticleEmitter.cpp:331
bool GetFeature(Feature feature) const
Test if a certain feature is enabled (see IKSolver::Feature).
Definition: IKSolver.cpp:149
void UpdateMainlineKey()
Update mainline key.
Definition: SpriterInstance2D.cpp:238
void UpdateBuffers()
Rewrite decal vertex and index buffers.
Definition: DecalSet.cpp:1011
unsigned short port_
Remote endpoint port.
Definition: Connection.h:321
void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse hover.
Definition: Slider.cpp:84
VariantVector ReadVariantVector()
Read a variant vector.
Definition: Deserializer.cpp:398
@ AM_COMPONENTID
Attribute is a component ID and may need rewriting.
Definition: Attribute.h:51
void UnsubscribeFromEvent(StringHash eventType)
Unsubscribe from an event.
Definition: Object.cpp:198
void UpdateProjection() const
Recalculate projection matrix.
Definition: Camera.cpp:648
bool playing_
Playing flag.
Definition: Audio.h:143
Database subsystem. Manage database connections.
Definition: Database.h:43
const PListValueVector & GetValueVector() const
Return value vector.
Definition: PListFile.cpp:247
SharedArrayPtr< float > heightData_
Height data. On LOD level 0 the original height data will be used.
Definition: CollisionShape.h:131
String NormalizeDefines(const String &defines)
Sort the defines and strip extra spaces to prevent creation of unnecessary duplicate shader variation...
Definition: Shader.cpp:208
TextureFrame()
Construct with default values.
Definition: ParticleEffect.h:89
~CustomGeometry() override
Destruct.
void DefineOrtho(float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4 &transform=Matrix3x4::IDENTITY)
Define with orthographic projection parameters and a transform matrix.
Definition: Frustum.cpp:136
const T & Front() const
Return const first element.
Definition: Vector.h:1134
unsigned short GetExcludeFlags(unsigned queryFilterType) const
Get the exclude flags for the specified query filter type.
Definition: CrowdManager.cpp:492
static void RegisterObject(Context *context)
Register object factory.
Definition: Terrain.cpp:120
void SortFrontToBack2Pass(PODVector< Batch * > &batches)
Sort batches front to back while also maintaining state sorting.
Definition: Batch.cpp:782
bool autoResolve_
Multisampling autoresolve flag.
Definition: Texture.h:241
const String & GetTextureUnitName(TextureUnit unit)
Return texture unit name by index.
Definition: OGLGraphics.cpp:2166
bool Contains(const T &key) const
Return whether contains a pair with key.
Definition: HashMap.h:557
Variant(const StringVector &value)
Construct from a string vector.
Definition: Variant.h:463
unsigned GetCursorPosition() const
Return cursor position.
Definition: LineEdit.h:93
void Define(const Vector3 &min, const Vector3 &max)
Define from minimum and maximum vectors.
Definition: BoundingBox.h:156
unsigned numSplits_
Shadow map split count.
Definition: View.h:76
void SetLodBias(float bias)
Set LOD bias.
Definition: Camera.cpp:171
Skeleton & GetSkeleton()
Return skeleton.
Definition: AnimatedModel.h:103
HashMap< unsigned, SharedPtr< Sprite2D > > spriterFileSprites_
Spriter sprites.
Definition: AnimationSet2D.h:120
@ UPDATE_ACTIVE_POSE
Should be enabled if you are using IK on an animated model, along with disabling USE_ORIGINAL_POSE.
Definition: IKSolver.h:129
Vector< VertexBufferDesc > loadVBData_
Vertex buffer data for asynchronous loading.
Definition: Model.h:226
void PushInt(int value)
Push int to stack.
Definition: LuaFunction.cpp:102
IntVector2 GetCursorPosition() const
Return cursor position.
Definition: UI.cpp:769
unsigned frameNumber_
Frame number.
Definition: Timer.h:123
PackageFile(Context *context)
Construct.
Definition: PackageFile.cpp:32
Iterator Erase(const Iterator &start, const Iterator &end)
Erase a range by iterators. Return iterator to the next element.
Definition: Vector.h:966
float GetMaxForce() const
Set max force.
Definition: ConstraintFriction2D.h:54
Vector2 size_
Size (for rectangle and ellipse).
Definition: TileMapDefs2D.h:218
unsigned litBasePassIndex_
Index of the litbase pass.
Definition: View.h:429
AutoRemoveMode GetAutoRemoveMode() const
Return automatic removal mode on particle effect completion.
Definition: ParticleEmitter.h:103
Font face description.
Definition: FontFace.h:64
unsigned stencilRef_
Stencil test reference value.
Definition: Graphics.h:835
void AssignBoneNodes()
Find bones after loading.
Definition: DecalSet.cpp:1105
void SetDefaultStyle(XMLFile *style)
Set fileselector UI style.
Definition: FileSelector.cpp:143
void ProcessShadowCasters(LightQueryResult &query, const PODVector< Drawable * > &drawables, unsigned splitIndex)
Process shadow casters' visibilities and build their combined view- or projection-space bounding box.
Definition: View.cpp:2379
Iterator DoInsertElements(unsigned pos, RandomIteratorT start, RandomIteratorT end, Tag)
Insert elements into the vector using copy or move constructor.
Definition: Vector.h:615
PODVector< Vector2 > vertices_
Vertices.
Definition: CollisionPolygon2D.h:73
VertexBuffer(Context *context, bool forceHeadless=false)
Construct. Optionally force headless (no GPU-side buffer) operation.
Definition: VertexBuffer.cpp:36
void AddRef()
Add a weak reference to the object pointed to.
Definition: Ptr.h:510
static void RegisterObject(Context *context)
Register object factory.
Definition: TileMapLayer2D.cpp:46
~Obstacle() override
Destruct.
Definition: Obstacle.cpp:48
static unsigned GetRGFloat16Format()
Return the API-specific RG 16-bit float texture format.
Definition: OGLGraphics.cpp:2625
void SetCustomMaterial(Material *customMaterial)
Set custom material.
Definition: StaticSprite2D.cpp:225
void AddLayer(unsigned index, TmxLayer2D *layer)
Add layer at index, if index > number of layers then append to end.
Definition: TmxFile2D.cpp:542
const Vector< PODVector< unsigned > > & GetGeometryBoneMappings() const
Return geometery bone mappings.
Definition: Model.h:185
void SetHovering(bool enable)
Set hovering state.
Definition: UIElement.cpp:1810
float regionMergeSize_
Region merge size.
Definition: NavigationMesh.h:328
T * Detach()
Detach pointer from UniquePtr without destroying.
Definition: Ptr.h:635
PODVector< T > & operator+=(const T &rhs)
Add-assign an element.
Definition: Vector.h:748
UIElement * titleLayout
Title layout.
Definition: FileSelector.h:151
float GetSpeed() const
Get the movement Speed.
Definition: SplinePath.h:79
unsigned occlusionLodLevel_
LOD level used for occlusion.
Definition: Terrain.h:289
BiasParameters(float constantBias, float slopeScaledBias, float normalOffset=0.0f)
Construct with initial values.
Definition: Light.h:62
bool elementEventSender_
Flag whether node should send child added / removed events by itself.
Definition: UIElement.h:817
void OnSetEditable() override
React to editable status change.
Definition: DropDownList.cpp:149
void DrawTransform(const b2Transform &xf) override
Draw a transform. Choose your own length scale.
Definition: PhysicsWorld2D.cpp:264
Weak pointer template class with intrusive reference counting. Does not keep the object pointed to al...
Definition: Ptr.h:263
short y_
Y position in texture.
Definition: FontFace.h:42
bool LoadByteCode(const String &binaryShaderName)
Load bytecode from a file. Return true if successful.
Definition: OGLShaderVariation.cpp:199
void Detach()
Detach from parent.
Definition: UIElement.cpp:2222
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update in case of headless execution.
Definition: Octree.cpp:578
Frustum GetViewSpaceSplitFrustum(float nearClip, float farClip) const
Return split frustum in view space.
Definition: Camera.cpp:360
Vector3 otherPosition_
Constraint other body position.
Definition: Constraint.h:185
WeakPtr< Image > windowIcon_
Window icon image.
Definition: Graphics.h:716
void SetEmitting(bool enable)
Set whether should be emitting. If the state was changed, also resets the emission period timer.
Definition: ParticleEmitter2D.cpp:168
Hash set node const iterator.
Definition: HashSet.h:113
int systemCursor_
System cursor index.
Definition: Cursor.h:90
Hash set template class.
Definition: HashSet.h:35
void PurgePool()
Purge the pool to reduce allocation where its unneeded.
Definition: WorkQueue.cpp:368
void SetEngineForce(int wheel, float force)
Set engine force for the wheel.
Definition: RaycastVehicle.cpp:569
void OnServerConnected(const SLNet::AddressOrGUID &address)
Handle server connection.
Definition: Network.cpp:988
bool WriteVariantMap(const VariantMap &value)
Write a variant map.
Definition: Serializer.cpp:353
Intersection IsInside(const Vector3 &point) const
Test if a point is inside.
Definition: Sphere.h:156
CullMode GetCullMode() const
Return normal culling mode.
Definition: Material.h:223
BlendMode GetBlendMode() const
Return blend mode.
Definition: StaticSprite2D.h:86
void SetWorldDirection(const Vector3 &direction)
Set forward direction in world space.
Definition: Node.cpp:523
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: CollisionShape.cpp:947
Polyhedron Transformed(const Matrix3 &transform) const
Return transformed with a 3x3 matrix.
Definition: Polyhedron.cpp:257
SharedArrayPtr()
Construct a null shared array pointer.
Definition: ArrayPtr.h:38
void SetInstanceDefault(bool enable)
Set instance-level default flag.
Definition: Serializable.h:89
void SetFontOversampling(int oversampling)
Set the oversampling (horizonal stretching) used to improve subpixel font rendering....
Definition: UI.cpp:728
bool Contains(const String &str, bool caseSensitive=true) const
Return whether contains a specific occurrence of a string.
Definition: Str.h:441
Frustum GetSplitFrustum(float nearClip, float farClip) const
Return frustum split by custom near and far clip distances.
Definition: Camera.cpp:310
const T * operator->() const
Point to the key.
Definition: HashSet.h:106
ConstIterator(const Iterator &rhs)
Construct from a non-const iterator.
Definition: HashMap.h:168
~Sprite2D() override
Destruct.
BoxOctreeQuery(PODVector< Drawable * > &result, const BoundingBox &box, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with bounding box and query parameters.
Definition: OctreeQuery.h:119
TmxFile2D * GetTmxFile() const
Return tmx file.
Definition: TmxFile2D.cpp:50
float GetActiveTime() const
Return emission active period length (0 = infinite).
Definition: ParticleEffect.h:269
const Vector3 & GetGeometryCenter(unsigned index) const
Return geometry center by index.
Definition: Model.h:179
PODVector< unsigned char > binaryAttributes_
Binary attributes.
Definition: UnknownComponent.h:99
Hierarchical performance profiler subsystem.
Definition: Profiler.h:172
IntVector3 coordinateSystem_
Coordinate system.
Definition: RaycastVehicle.h:192
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: StaticModel.cpp:373
unsigned vertexCount_
Number of vertices.
Definition: CollisionShape.h:117
Vector2 size_
Original billboard size.
Definition: ParticleEmitter.h:38
unsigned char GetRenderOrder() const
Return render order.
Definition: Material.h:241
unsigned passIndex_
Scene pass index. Filled by View.
Definition: RenderPath.h:146
File opened either through the filesystem or from within a package file.
Definition: File.h:62
String name_
Morph name.
Definition: Model.h:57
float minZ_
Scene minimum Z value.
Definition: View.h:102
unsigned lastUpdateFrameNumber_
Rendering framenumber on which was last updated.
Definition: RibbonTrail.h:237
const PODVector< Drawable * > & GetOccluders() const
Return occluder objects.
Definition: View.h:166
Vector3 GetRandomPoint(int queryFilterType, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh using the crowd initialized query extent (based on maxAg...
Definition: CrowdManager.cpp:411
void HandleHeightMapReloadFinished(StringHash eventType, VariantMap &eventData)
Handle heightmap image reload finished.
Definition: Terrain.cpp:1440
float GetSortValue() const
Return sorting value.
Definition: Drawable.h:266
int GetLanguageIndex() const
Return the index number of current language. The index is determined by the order of loading.
Definition: Localization.h:46
bool isServer_
Server mode flag.
Definition: NamedPipe.h:74
Doubly-linked list base class.
Definition: ListBase.h:93
U & operator[](const T &key)
Index the map. Create a new pair if key not found.
Definition: HashMap.h:331
float GetAnimationLodBias() const
Return animation LOD bias.
Definition: BillboardSet.h:134
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: Zone.cpp:69
const Color & GetAmbientColor() const
Return zone's own ambient color, disregarding gradient mode.
Definition: Zone.h:77
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintRope2D.cpp:47
bool autoSize_
Auto-size (reduce resolution when far away) flag.
Definition: Light.h:142
void SetTextureParametersDirty()
Dirty texture parameters of all textures (when global settings change.)
Definition: OGLGraphics.cpp:1601
HashMap< String, PListValue > PListValueMap
PList value map.
Definition: PListFile.h:49
float GetAngularVelocity() const
Return angular velocity.
Definition: RigidBody2D.cpp:543
EventHandler(Object *receiver, void *userData=nullptr)
Construct with specified receiver and userdata.
Definition: Object.h:251
void SetColor(const Color &color)
Set color.
Definition: Light.cpp:284
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: TmxFile2D.h:153
void AllocateNetworkState()
Allocate network attribute state.
Definition: Serializable.cpp:712
unsigned g_
Green channel mask. If zero, green channel is set to 0.
Definition: Color.h:42
bool nonUniform_
Non-uniform focusing flag.
Definition: Light.h:140
NavmeshPartitionType GetPartitionType() const
Return Partition Type.
Definition: NavigationMesh.h:258
void SetShadowNearFarRatio(float nearFarRatio)
Set shadow camera near/far clip distance ratio for spot and point lights. Does not affect directional...
Definition: Light.cpp:347
T & operator*() const
Dereference the array.
Definition: ArrayPtr.h:106
Vector2 ConvertPosition(const Vector2 &position) const
Convert tmx position to Urho position.
Definition: TileMapDefs2D.cpp:50
void CleanupConnection(Connection *connection)
Clean up all references to a network connection that is about to be removed.
Definition: Scene.cpp:1111
bool editable_
Value editable flag.
Definition: UIElement.h:706
unsigned dataSize_
Total data size in bytes.
Definition: Image.h:73
void SetDeepEnabled(bool enable)
Set enabled state on self and child elements. Elements' own enabled state is remembered (IsEnabledSel...
Definition: UIElement.cpp:893
void HandleFileSelected(StringHash eventType, VariantMap &eventData)
Handle file selected from the list.
Definition: FileSelector.cpp:403
WeakPtr< Terrain > south_
South neighbor terrain.
Definition: Terrain.h:261
bool HasProperty(const String &name) const
Return has property.
Definition: TileMapDefs2D.cpp:208
float GetMaxRadiusVariance() const
Return max radius variance.
Definition: ParticleEffect2D.h:212
ConstIterator End() const
Return const iterator to the end.
Definition: Vector.h:1128
void SetWorldPosition2D(float x, float y)
Set position in world space (for Urho2D).
Definition: Node.h:191
long long GetUSec(bool reset)
Return elapsed microseconds and optionally reset.
Definition: Timer.cpp:220
2D circle collision component.
Definition: CollisionCircle2D.h:31
Vector< Vector< SharedPtr< Geometry > > > geometries_
Geometries.
Definition: Model.h:214
void CreateQuadsFromBuffer(const Vector< Vector3 > &pointList, size_t zIterations, size_t thetaIterations, bool connectTail=false)
Helper Function Creating 3D Meshes (connectTail = true), connect the endLinePoint to the start)
Definition: CustomGeometry.cpp:422
Definition: NavigationMesh.h:81
AllocatorNode * next_
Next free node.
Definition: Allocator.h:57
void SetCursorMovable(bool enable)
Set whether can move cursor with arrows or mouse, default true.
Definition: LineEdit.cpp:522
int GetCurrentMonitor() const
Returns the index of the display containing the center of the window on success or a negative error c...
Definition: Graphics.cpp:320
ResourceRouter * GetResourceRouter(unsigned index) const
Return a resource router by index.
Definition: ResourceCache.cpp:800
bool SetIntRect(const String &name, const IntRect &value)
Set an IntRect attribute.
Definition: XMLElement.cpp:382
2D texture resource.
Definition: Texture2D.h:36
float GetEndTime() const
Return end time.
Definition: ValueAnimation.h:126
@ CA_STATE_WALKING
The agent is traversing a normal navigation mesh polygon.
Definition: CrowdAgent.h:54
Shader * GetOwner() const
Return the owner resource.
Definition: ShaderVariation.cpp:75
HashNodeBase * tail_
List tail node pointer.
Definition: HashBase.h:151
float Length() const
Return length.
Definition: Vector3.h:156
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Zone.cpp:247
const Vector2 & GetPosition() const
Return position.
Definition: TileMapDefs2D.h:180
float GetUpperTranslation() const
Return upper translation.
Definition: ConstraintPrismatic2D.h:73
WeakPtr< UIElement > focusElement_
Currently focused element.
Definition: UI.h:359
void SetName(const String &name)
Set name.
Definition: UIElement.cpp:513
bool retryCreation_
Shape creation retry flag if attributes initially set without scene.
Definition: CollisionShape.h:318
bool drawShadows_
Draw shadows flag.
Definition: Renderer.h:590
void SetRadialAcceleration(float radialAcceleration)
Set radial acceleration.
Definition: ParticleEffect2D.cpp:344
void Draw(PrimitiveType type, unsigned vertexStart, unsigned vertexCount)
Draw non-indexed geometry.
Definition: OGLGraphics.cpp:844
float GetHeight() const
Get the agent's height.
Definition: CrowdAgent.h:160
HashSet(HashSet< T > &&set) noexcept
Move-construct from another hash set.
Definition: HashSet.h:192
void SetCullMode(CullMode mode)
Set culling mode override. By default culling mode is read from the material instead....
Definition: Technique.cpp:104
void SetDefaultTechnique(Technique *technique)
Set default non-textured material technique.
Definition: Renderer.cpp:306
KeyValue(const T &first, const U &second)
Construct with key and value.
Definition: HashMap.h:54
VariantMap & GetIdentity()
Return client identity.
Definition: Connection.h:177
int GetCategoryBits() const
Return filter category bits.
Definition: CollisionShape2D.h:74
int numTilesZ_
Number of tiles in Z direction.
Definition: NavigationMesh.h:342
Obstacle for dynamic navigation mesh.
Definition: Obstacle.h:34
Frustum octree query.
Definition: OctreeQuery.h:136
const PODVector< Light * > & GetVertexLights() const
Return per-vertex lights.
Definition: Drawable.h:278
unsigned viewMask_
View mask.
Definition: Drawable.h:353
unsigned GetVertexCount() const
Return vertex count.
Definition: CollisionChain2D.h:57
String ToString() const
Return as string.
Definition: Vector3.cpp:52
unsigned intervalCount_
Calls during current profiler interval.
Definition: Profiler.h:162
HashMap< unsigned, SharedPtr< Texture2D > > depthTextures_
Map for additional depth textures, to emulate Direct3D9 ability to mix render texture and backbuffer ...
Definition: OGLGraphicsImpl.h:150
Intersection
Intersection test result.
Definition: MathDefs.h:62
void AddColorFrame(const ColorFrame &colorFrame)
Add a color frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:616
bool SetResourceRefList(const ResourceRefList &value)
Set a resource reference list attribute.
Definition: XMLElement.cpp:455
unsigned GetNumFiles() const
Return number of files.
Definition: PackageFile.h:71
const String & GetCompilerOutput() const
Return compile error/warning string.
Definition: ShaderVariation.h:132
void Release()
Release the mutex.
Definition: Mutex.cpp:99
WeakPtr< UIElement > doubleClickElement_
UI element last clicked for tracking double clicks.
Definition: UI.h:419
Hardware index buffer.
Definition: IndexBuffer.h:34
Text * GetMemoryText() const
Return memory text.
Definition: DebugHud.h:85
bool EnterFile()
Enter a directory or confirm a file. Return true if a directory entered.
Definition: FileSelector.cpp:347
Texture * GetShapeTexture() const
Return spotlight attenuation texture.
Definition: Light.h:292
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector3.h:417
void * surface_
Direct3D9 surface.
Definition: RenderSurface.h:132
Matrix3x4 transforms_
Transform matrices for position and orientation.
Definition: RibbonTrail.h:209
float maxSpeed_
Agent's max Velocity.
Definition: CrowdAgent.h:218
unsigned drawCount_
Index or vertex count.
Definition: OcclusionBuffer.h:80
Base class for GPU resources.
Definition: GPUObject.h:42
bool discardLock_
Discard lock flag. Used by OpenGL only.
Definition: VertexBuffer.h:172
int level_
Logging level.
Definition: Log.h:124
const Vector< SharedPtr< Component > > & GetComponents() const
Return all components.
Definition: Node.h:543
float GetFinishParticleSizeVariance() const
Return finish particle size variance.
Definition: ParticleEffect2D.h:200
Node * node_
Scene node.
Definition: OctreeQuery.h:172
LightPSVariation
Light pixel shader variations.
Definition: Renderer.h:89
Vector3 GetRandomDirection() const
Return random direction.
Definition: ParticleEffect.cpp:790
void SetInterpolationMode(InterpolationMode interpolationMode)
Set the interpolation mode.
Definition: Spline.h:89
bool SetData(unsigned layer, unsigned level, int x, int y, int width, int height, const void *data)
Set data either partially or fully on a layer's mip level. Return true if successful.
Definition: OGLTexture2DArray.cpp:103
bool updateInvisible_
Update animation when invisible flag.
Definition: AnimatedModel.h:243
const String & GetName() const
Return name.
Definition: TmxFile2D.h:51
SharedPtr< BorderImage > background_
Background.
Definition: Console.h:145
void SetPriority(int priority)
Set thread priority. The thread must have been started first.
Definition: Thread.cpp:118
FocusMode
UI element focus mode.
Definition: UIElement.h:72
bool IsFixedScreenSize() const
Return whether billboards are fixed screen size.
Definition: ParticleEffect.h:245
Audio(Context *context)
Construct.
Definition: Audio.cpp:55
ScriptInstanceMethod
Inbuilt scripted component methods.
Definition: ScriptInstance.h:41
UIElement * element_
Element this batch represents.
Definition: UIBatch.h:77
Vector4 ToVector4() const
Return RGBA as a four-dimensional vector.
Definition: Color.h:165
int GetLevelDepth(unsigned level) const
Return mip level depth, or 0 if level does not exist.
Definition: Texture.cpp:143
Vector< WeakPtr< Constraint2D > > constraints_
Constraints.
Definition: RigidBody2D.h:183
Variant(const Color &value)
Construct from a color.
Definition: Variant.h:403
unsigned shaderParameterHash_
Shader parameter hash value.
Definition: Material.h:309
T Sign(T value)
Return the sign of a float (-1, 0 or 1).
Definition: MathDefs.h:95
String vertexShaderDefineExcludes_
Vertex shader define excludes.
Definition: Technique.h:174
void EndDumpShaders()
End dumping shader variations names.
Definition: Graphics.cpp:366
TileMapLayerType2D type_
Layer type.
Definition: TmxFile2D.h:77
Template implementation of the object factory.
Definition: Object.h:232
void SetLength(float length)
Set animation length.
Definition: Animation.cpp:295
Vector< SharedPtr< VertexBuffer > > morphVertexBuffers_
Morph vertex buffers.
Definition: AnimatedModel.h:215
float GetMotorSpeed() const
Return motor speed.
Definition: ConstraintWheel2D.h:71
IntRect viewport_
Viewport coordinates.
Definition: Graphics.h:797
float GetFadeDistance() const
Return fade start distance.
Definition: Light.h:262
const Vector2 & GetHotSpot() const
Return hot spot.
Definition: Sprite2D.h:71
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest)
Draw bounds to the debug graphics recursively.
Definition: Octree.cpp:207
Variant(const PODVector< unsigned char > &value)
Construct from a buffer.
Definition: Variant.h:421
Node * ReserveNode()
Reserve a node.
Definition: List.h:474
bool subscribed_
Subscribed to scene update events flag.
Definition: ScriptInstance.h:210
Variant(const VariantVector &value)
Construct from a variant vector.
Definition: Variant.h:451
Skeleton()
Construct an empty skeleton.
Definition: Skeleton.cpp:33
void ReleaseSDL()
Indicate that you are done with using SDL. Must be called after using RequireSDL().
Definition: Context.cpp:283
bool GetShowPercentText() const
Returns the flag to display the percent text.
Definition: ProgressBar.h:84
IntVector2 ReadIntVector2()
Read an IntVector2.
Definition: Deserializer.cpp:145
void SetCone(float diameter, float height, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a cone.
Definition: CollisionShape.cpp:654
CompressedFormat GetCompressedFormat() const
Return compressed format.
Definition: Image.h:177
bool paused_
Paused flag. Indicates the queue mutex being locked to prevent worker threads using up CPU time.
Definition: WorkQueue.h:144
void SetPadding(const Vector3 &padding)
Set padding of the navigation mesh bounding box. Having enough padding allows to add geometry on the ...
Definition: NavigationMesh.cpp:318
void End()
End timing.
Definition: Profiler.h:81
Vector3 GetPosition() const
Get the parent Node's last position on the spline.
Definition: SplinePath.h:85
void EndContact(b2Contact *contact) override
Called when two fixtures cease to touch.
Definition: PhysicsWorld2D.cpp:121
unsigned blockSize_
Block size in bytes.
Definition: Image.h:71
static const ResourceRef emptyResourceRef
Empty resource reference.
Definition: Variant.h:1385
pugi::xml_node_struct * GetNode() const
Return pugixml xml_node_struct.
Definition: XMLElement.h:288
void ErrorExit(const String &message=String::EMPTY)
Show an error message (last log message if empty), terminate the main loop, and set failure exit code...
Definition: Application.cpp:110
String Reverse() const
Return string which has specific hash value. Return first string if many (in order of calculation)....
Definition: StringHash.cpp:100
Matrix3x4 ReflectionMatrix() const
Return a reflection matrix.
Definition: Plane.cpp:50
@ USE_FIXEDPOSTUPDATE
Bitmask for using the physics post-update event.
Definition: LogicComponent.h:44
~LuaFile() override
Destruct.
unsigned customGeometryID_
CustomGeometry component ID. 0 if not creating the convex hull / triangle mesh from a CustomGeometry.
Definition: CollisionShape.h:312
unsigned scriptNestingLevel_
Current script execution nesting level.
Definition: Script.h:147
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: ProgressBar.cpp:71
UIElement * CreateChild(StringHash type, const String &name=String::EMPTY, unsigned index=M_MAX_UNSIGNED)
Create and add a child element and return it.
Definition: UIElement.cpp:1271
const String & GetFilter() const
Return current filter.
Definition: FileSelector.cpp:266
bool GetScissorTest() const
Return whether scissor test is enabled.
Definition: Graphics.h:534
3D texture resource.
Definition: Texture3D.h:34
String() noexcept
Construct empty.
Definition: Str.h:53
Attribute handle returned by Context::RegisterAttribute and used to chain attribute setup calls.
Definition: Attribute.h:120
void SetBodyType(BodyType2D type)
Set body type.
Definition: RigidBody2D.cpp:105
unsigned value_
Hash value.
Definition: StringHash.h:112
const void * instancingData_
Instancing data buffer.
Definition: Batch.h:128
void SetTranslation(const Vector3 &translation)
Set translation elements.
Definition: Matrix4.h:482
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintFriction2D.cpp:46
bool WriteStringVector(const StringVector &value)
Write a variant vector.
Definition: Serializer.cpp:344
bool recreateTerrain_
Terrain needs regeneration flag.
Definition: Terrain.h:325
void SetOrderInLayer(int orderInLayer)
Set order in layer.
Definition: Drawable2D.cpp:88
int CeilToInt(T x)
Round value up.
Definition: MathDefs.h:231
void PushVariant(const Variant &variant, const char *asType=nullptr)
Push variant to stack.
Definition: LuaFunction.cpp:144
~Graphics() override
Destruct. Release the Direct3D11 device and close the window.
Definition: OGLGraphics.cpp:322
EventHandler * FindEventHandler(StringHash eventType, EventHandler **previous=nullptr) const
Find the first event handler with no specific sender.
Definition: Object.cpp:461
bool GetAutoLocalizable() const
Return auto localizable mode.
Definition: Text.h:148
void SetFogStart(float start)
Set fog start distance.
Definition: Zone.cpp:118
float GetLodDistance() const
Return LOD distance.
Definition: Geometry.h:98
void DisableMassUpdate()
Disable mass update. Call this to optimize performance when adding or editing multiple collision shap...
Definition: RigidBody.cpp:588
float Luma() const
Return the 'grayscale' representation of RGB values, as used by JPEG and PAL/NTSC among others.
Definition: Color.h:174
bool IsSimulating() const
Return whether is currently inside the Bullet substep loop.
Definition: PhysicsWorld.h:284
UniquePtr< btTriangleInfoMap > infoMap_
Bullet triangle info map.
Definition: CollisionShape.h:88
Vector4 tangent_
Tangent.
Definition: DecalSet.h:68
static unsigned GetSystemTime()
Get system time as milliseconds.
Definition: Timer.cpp:162
Vector3 Normalized() const
Return normalized to unit length.
Definition: Vector3.h:423
void UpdateResourceGroup(StringHash type)
Update a resource group. Recalculate memory use and release resources if over memory budget.
Definition: ResourceCache.cpp:1033
void HandleMouseButtonDown(StringHash eventType, VariantMap &eventData)
Handle mouse button down event.
Definition: UI.cpp:1759
const char * GetCString(const char *defaultValue="") const
Return C string value. Default to empty string literal.
Definition: JSONValue.h:204
ConstantBuffer * constantBuffers_[MAX_SHADER_PARAMETER_GROUPS *2]
Currently bound constant buffers.
Definition: OGLGraphicsImpl.h:144
void SetWorldTransform2D(const Vector2 &position, float rotation, float scale)
Set position, rotation, and uniform scale in world space as an atomic operation (for Urho2D).
Definition: Node.h:228
void ReleaseNavigationMesh() override
Release the navigation mesh, query, and tile cache.
Definition: DynamicNavigationMesh.cpp:1057
CullMode cullMode_
Hardware culling mode.
Definition: Graphics.h:809
void SetVariantValue(const Variant &variant, Context *context=nullptr)
Set variant value, context must provide for resource ref.
Definition: JSONValue.cpp:406
Octant * GetOrCreateChild(unsigned index)
Return or create a child octant.
Definition: Octree.cpp:99
bool GetHierarchyMode() const
Return whether hierarchy mode enabled.
Definition: ListView.h:153
bool directory_
Directory flag.
Definition: FileSelector.h:47
static const unsigned MAX_LOAD_FACTOR
Maximum load factor.
Definition: HashBase.h:106
void CalculateLength()
Calculate the length of the SplinePath. Used for movement calculations.
Definition: SplinePath.cpp:341
void SetTileLayer(const TmxTileLayer2D *tileLayer)
Set tile layer.
Definition: TileMapLayer2D.cpp:338
bool focusOnShow_
Flag for automatically focusing the line edit on showing the console.
Definition: Console.h:191
CustomVariantValueImpl(const T &value)
Construct from value.
Definition: Variant.h:233
void SetCFM(float cfm)
Set constraint force mixing parameter. Zero = leave to default.
Definition: Constraint.cpp:314
unsigned drawBuffers_
Draw buffer bits.
Definition: OGLGraphicsImpl.h:95
String & Append(const String &str)
Append a string.
Definition: Str.cpp:308
Scene render pass info.
Definition: View.h:80
void SetRadius(float radius)
Set area light radius. Greater than zero activates area light mode. Works only with PBR shaders.
Definition: Light.cpp:296
Variant(const char *type, const char *value)
Construct from type and value.
Definition: Variant.h:536
void HandleDefocused(StringHash eventType, VariantMap &eventData)
Handle being defocused.
Definition: LineEdit.cpp:650
void GetBaseBatches()
Get unlit batches.
Definition: View.cpp:1192
int height_
Texture height.
Definition: Texture.h:219
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CollisionShape2D.cpp:65
void ValidatePosition()
Validate window position.
Definition: Window.cpp:403
bool GetReuseShadowMaps() const
Return whether shadow maps are reused.
Definition: Renderer.h:304
void ResetCrowdTarget(Node *node=nullptr)
Reset any crowd target for all crowd agents found in the specified node. Defaulted to scene node.
Definition: CrowdManager.cpp:226
WeakPtr< UIElement > rootElement_
UIElement to be rendered into texture.
Definition: UI.h:251
unsigned Seek(unsigned position) override
Set position from the beginning of the stream. Not supported.
Definition: HttpRequest.cpp:270
void SetPosition(const Vector3 &position)
Set position in parent space. If the scene node is on the root level (is child of the scene itself),...
Definition: Node.cpp:442
int GetLevelHeight(unsigned level) const
Return mip level width, or 0 if level does not exist.
Definition: Texture.cpp:136
String GetVarNamesAttr() const
Return node user variable reverse mappings.
Definition: Scene.cpp:1076
void * lockScratchData_
Scratch buffer for fallback locking.
Definition: VertexBuffer.h:166
Graphics * GetGraphics() const
Return the graphics subsystem associated with this GPU object.
Definition: GPUObject.cpp:73
void GetBatchesWithOffset(IntVector2 &offset, PODVector< UIBatch > &batches, PODVector< float > &vertexData, IntRect currentScissor)
Get UI rendering batches with a specified offset. Also recurse to child elements.
Definition: UIElement.cpp:1832
float quantize_
Focus quantization.
Definition: Light.h:144
float GetMapHeight() const
return map height.
Definition: TileMapDefs2D.cpp:40
void Draw(View *view, Camera *camera, bool markToStencil, bool usingLightOptimization, bool allowDepthWrite) const
Draw.
Definition: Batch.cpp:848
void AddQuad(float x, float y, float width, float height, int texOffsetX, int texOffsetY, int texWidth=0, int texHeight=0)
Add a quad.
Definition: UIBatch.cpp:78
float opacity_
Opacity.
Definition: UIElement.h:797
float slopeScaledBias_
Slope scaled bias.
Definition: Light.h:75
char Front() const
Return first char, or 0 if empty.
Definition: Str.h:391
void SetFrequencyHz(float frequencyHz)
Set frequency Hz.
Definition: ConstraintWheel2D.cpp:129
BorderImage(Context *context)
Construct.
Definition: BorderImage.cpp:38
SceneResolver resolver_
Node and component ID resolver for asynchronous loading.
Definition: Scene.h:296
void DefineTangent(const Vector4 &tangent)
Define a vertex tangent.
Definition: CustomGeometry.cpp:577
WeakPtr< RigidBody2D > ownerBody_
Owner body.
Definition: Constraint2D.h:98
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Trigger the tile cache to make updates to the nav mesh if necessary.
Definition: DynamicNavigationMesh.cpp:1153
Vector2 size_
Size.
Definition: CollisionBox2D.h:72
Zone(Context *context)
Construct.
Definition: Zone.cpp:50
Node * Next() const
Return next node.
Definition: HashSet.h:54
void RemoveEventHandlersExcept(const PODVector< StringHash > &exceptions) override
Remove all scripted event handlers, except those listed.
Definition: ScriptInstance.cpp:401
void SetInstancingData(void *lockedData, unsigned stride, unsigned &freeIndex)
Pre-set instance data of all groups. The vertex buffer must be big enough to hold all data.
Definition: Batch.cpp:842
void GetDerivedComponents(PODVector< T * > &dest, bool recursive=false, bool clearVector=true) const
Return components derived from class.
Definition: Node.h:779
unsigned position_
Byte position in the front most buffer.
Definition: BufferedSoundStream.h:64
IntVector2 hoverOffset_
Offset to image rectangle on hover.
Definition: BorderImage.h:125
void SetEnableLimit(bool enableLimit)
Set enable limit.
Definition: ConstraintRevolute2D.cpp:71
String(const String &str)
Construct from another string.
Definition: Str.h:61
bool flipX_
Flip X.
Definition: StaticSprite2D.h:148
TextureUnit GetTextureUnit(const String &name)
Return texture unit index by name.
Definition: OGLGraphics.cpp:2157
float orthoSize_
Orthographic view size.
Definition: Camera.h:254
void SetMeshName(const String &newName)
Set the name of this navigation mesh.
Definition: NavigationMesh.cpp:222
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionPolygon2D.cpp:46
void ProcessPackageInfo(int msgID, MemoryBuffer &msg)
Process a SyncPackagesInfo message from server.
Definition: Connection.cpp:1630
bool AddPackageFile(PackageFile *package, unsigned priority=PRIORITY_LAST)
Add a package file for loading resources from. Optional priority parameter which will control search ...
Definition: ResourceCache.cpp:136
String ReadFileID()
Read a four-letter file ID.
Definition: Deserializer.cpp:263
void SetInactiveTime(float time)
Set emission inactive period length (0 = infinite).
Definition: ParticleEffect.cpp:515
Material(Context *context)
Construct.
Definition: Material.cpp:198
AttributeModeFlags mode_
Attribute mode: whether to use for serialization, network replication, or both.
Definition: Attribute.h:112
float GetRotation2D() const
Return rotation in parent space (for Urho2D).
Definition: Node.h:386
void SetResolveDirty(bool enable)
Set or clear the need resolve flag. Called internally by Graphics.
Definition: RenderSurface.h:123
unsigned GetNumAreas(unsigned queryFilterType) const
Get the number of configured area in the specified query filter type.
Definition: CrowdManager.cpp:448
bool IsAtEnd(const String &name) const
Return whether an animation is at its end. Will return false if the animation is not active at all.
Definition: AnimationController.cpp:472
static const unsigned FLIP_HORIZONTAL
Tile flipping flags.
Definition: TileMapDefs2D.h:124
Vector2 GetMassCenter() const
Return mass center.
Definition: CollisionShape2D.cpp:277
void SetRotation(const Quaternion &rotation)
Set the observer rotation for interest management, to be sent to the server. Note: not used by the Ne...
Definition: Connection.cpp:237
const Vector2 & GetAxis() const
Return axis.
Definition: ConstraintPrismatic2D.h:64
unsigned capacity_
Number of nodes in this block.
Definition: Allocator.h:45
Matrix3x4 GetMatrix3x4(const String &name) const
Return a Matrix3x4 attribute, or zero matrix if missing.
Definition: XMLElement.cpp:980
bool IsKinematic() const
Return kinematic mode flag.
Definition: RigidBody.h:211
const KeyValue & Back() const
Return last pair.
Definition: HashMap.h:618
ConstraintMotor2D(Context *context)
Construct.
Definition: ConstraintMotor2D.cpp:37
Vector3 targetPosition_
Requested target position.
Definition: CrowdAgent.h:208
bool IsInf() const
Return whether any component is Inf.
Definition: Vector4.h:198
PODVector< StaticModelGeometryData > geometryData_
Extra per-geometry data.
Definition: StaticModel.h:117
void SetTextAlignment(HorizontalAlignment align)
Set row alignment.
Definition: Text3D.cpp:254
const PODVector< unsigned char > & GetBinaryAttributes() const
Return the binary attributes. Empty when loaded with XML serialization.
Definition: UnknownComponent.h:71
float GetMobileShadowBiasAdd() const
Return shadow depth bias addition for mobile platforms.
Definition: Renderer.h:337
const nanodbc::result & GetResultImpl() const
Return the underlying implementation result object.
Definition: ODBCResult.h:54
void SetRowSpacing(float spacing)
Set row spacing, 1.0 for original font spacing.
Definition: Text3D.cpp:261
Bone * GetStartBone() const
Return start bone.
Definition: AnimationState.cpp:384
Matrix2(float v00, float v01, float v10, float v11) noexcept
Construct from values.
Definition: Matrix2.h:47
String fileName_
File name.
Definition: PackageFile.h:92
Matrix4(const float *data) noexcept
Construct from a float array.
Definition: Matrix4.h:145
asIScriptEngine * GetScriptEngine() const
Return the AngelScript engine.
Definition: Script.h:86
void ResetUpdateQueued()
Reset update queued flag. Called internally.
Definition: RenderSurface.cpp:77
ResourceRef GetCustomMaterialAttr() const
Return custom material attribute.
Definition: StaticSprite2D.cpp:266
void SetFaceCameraMode(FaceCameraMode mode)
Set how the billboards should rotate in relation to the camera. Default is to follow camera rotation ...
Definition: BillboardSet.cpp:314
HorizontalAlignment textAlignment_
Row alignment.
Definition: Text.h:227
CollisionBox2D(Context *context)
Construct.
Definition: CollisionBox2D.cpp:37
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Terrain.cpp:172
float time_
Keyframe time.
Definition: Animation.h:56
unsigned indexCount_
Index count.
Definition: Model.h:104
bool initialized_
Initialized flag.
Definition: Engine.h:152
void ValidateShadowFocus()
Validate shadow focus.
Definition: Light.h:341
IntRect imageRect_
Image rectangle.
Definition: BorderImage.h:119
void DecDrawableCount()
Decrease drawable object count recursively and remove octant if it becomes empty.
Definition: Octree.h:120
SpatialInfo spatialInfo_
Root spatial info.
Definition: SpriterInstance2D.h:103
unsigned GetNumGeometries(bool allViews=false) const
Return number of geometries rendered.
Definition: Renderer.cpp:573
~SpriteSheet2D() override
Destruct.
float GetSpeed() const
Return speed.
Definition: ParticleEffect2D.h:143
float Left() const
Return left coordinate.
Definition: Rect.h:247
void SetImageLayer(const TmxImageLayer2D *imageLayer)
Set image layer.
Definition: TileMapLayer2D.cpp:404
void Initialize(TileMap2D *tileMap, const TmxLayer2D *tmxLayer)
Initialize with tile map and tmx layer.
Definition: TileMapLayer2D.cpp:170
void ProcessSceneUpdate(int msgID, MemoryBuffer &msg)
Process a scene update message from the server. Called by Network.
Definition: Connection.cpp:588
void ValidateShadowCascade()
Validate shadow cascade.
Definition: Light.h:343
void RemoveAllAttributes()
Template version of removing all object attributes.
Definition: Context.h:269
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Constraint.cpp:100
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Model.cpp:75
static void RegisterObject(Context *context)
Register object factory.
Definition: Octree.cpp:329
const ProfilerBlock * GetRootBlock()
Return the root profiling block.
Definition: Profiler.h:216
bool inverseWorldDirty_
Inverse transform dirty flag.
Definition: Zone.h:138
bool IsSixteenBit() const
Return whether data is sixteen bit.
Definition: SoundStream.h:63
void SetCullMode(CullMode mode, Camera *camera)
Set cull mode while taking possible projection flipping into account.
Definition: Renderer.cpp:1332
SharedPtr< LuaScriptEventInvoker > eventInvoker_
Procedural event invoker.
Definition: LuaScript.h:121
static unsigned GetDepthStencilFormat()
Return the API-specific hardware depth-stencil texture format.
Definition: OGLGraphics.cpp:2673
Vector< SharedPtr< Material > > materials_
Materials.
Definition: Renderer2D.h:62
void GetScriptAttributes()
Find script object attributes.
Definition: LuaScriptInstance.cpp:524
List const iterator.
Definition: List.h:107
String GetNumberTypeName() const
Return number type's name.
Definition: JSONValue.cpp:181
void SetFinishParticleSize(float finishParticleSize)
Set finish particle size.
Definition: ParticleEffect2D.cpp:399
Package file receive transfer.
Definition: Connection.h:68
void SetTargetName(const String &nodeName)
Sets the name of the target node. The node doesn't necessarily have to exist in the scene graph....
Definition: IKEffector.cpp:105
PODVector< VertexElement > vertexElements_
Vertex declaration.
Definition: Model.h:72
ShaderParameterAnimationInfo * GetShaderParameterAnimationInfo(const String &name) const
Return shader parameter animation info.
Definition: Material.cpp:1313
static const IntVector3 RIGHT
(1,0,0) vector.
Definition: Vector3.h:170
IntVector2(int x, int y) noexcept
Construct from coordinates.
Definition: Vector2.h:43
void SetCursor(Cursor *cursor)
Set cursor UI element.
Definition: UI.cpp:154
void SetDepthWrite(bool enable)
Set depth write on/off.
Definition: Technique.cpp:119
static unsigned GetMaxBones()
Return maximum number of supported bones for skinning.
Definition: OGLGraphics.cpp:2109
T Sin(T angle)
Return sine of an angle in degrees.
Definition: MathDefs.h:139
void ApplyValue(const Variant &newValue) override
Apply new animation value to the target object. Called by Update().
Definition: Animatable.cpp:53
A common root class for objects that implement both Serializer and Deserializer.
Definition: AbstractFile.h:32
String GetQuery() const
Return query string.
Definition: XMLElement.h:390
Quaternion GetRotation() const
Return rigid body rotation in world space.
Definition: RigidBody.cpp:613
b2Joint * joint_
Box2D joint.
Definition: Constraint2D.h:96
bool Defined() const
Return true if this bounding box is defined via a previous call to Define() or Merge().
Definition: BoundingBox.h:256
ShaderProgramMap shaderPrograms_
Linked shader programs.
Definition: OGLGraphicsImpl.h:154
bool WriteNetID(unsigned value)
Write a 24-bit network object ID.
Definition: Serializer.cpp:394
void SetOrthoSizeAttr(float orthoSize)
Set orthographic size attribute without forcing the aspect ratio.
Definition: Camera.cpp:608
void SetPlaceholderText(const String &text)
Set place holder text. This is the text shown when there is no selection (-1) in drop down list....
Definition: DropDownList.cpp:188
void SetMobileShadowBiasAdd(float add)
Set shadow depth bias addition for mobile platforms to counteract possible worse shadow map precision...
Definition: Renderer.cpp:502
void SetControlledNode(Node *controlled)
Set the Node to be moved along the SplinePath.
Definition: SplinePath.cpp:193
const Rect & GetLightScissor(Light *light, Camera *camera)
Return a scissor rectangle for a light.
Definition: Renderer.cpp:1451
void SetMobileShadowBiasMul(float mul)
Set shadow depth bias multiplier for mobile platforms to counteract possible worse shadow map precisi...
Definition: Renderer.cpp:497
float endTime_
End time.
Definition: ValueAnimation.h:163
Variant GetVariantValue(VariantType type) const
Return a variant with type.
Definition: JSONValue.cpp:489
void AddWheel(Node *wheelNode, Vector3 wheelDirection, Vector3 wheelAxle, float restLength, float wheelRadius, bool frontWheel)
Add a wheel. All parameters are relative to RigidBody / node.
Definition: RaycastVehicle.cpp:378
void SetMaxMotorTorque(float maxMotorTorque)
Set max motor torque.
Definition: ConstraintRevolute2D.cpp:146
SharedPtr< Zone > defaultZone_
Default zone.
Definition: Renderer.h:480
RenderPathCommand * GetCommand(unsigned index)
Return command at index, or null if does not exist.
Definition: RenderPath.h:242
static const Color TRANSPARENT_BLACK
Transparent black color (black with no alpha).
Definition: Color.h:283
void SetString(const String &value)
Set string.
Definition: PListFile.cpp:156
float minView_
Minimum view size.
Definition: Light.h:146
@ JSONNT_UINT
Unsigned integer.
Definition: JSONValue.h:57
float GetWheelSkidInfo(int wheel) const
Sliding factor 0 <= x <= 1.
Definition: RaycastVehicle.cpp:671
VectorBuffer()
Construct an empty buffer.
const unsigned * GetConstantBufferSizes() const
Return constant buffer data sizes.
Definition: ShaderVariation.h:135
@ WEIGHT_NLERP
Definition: IKEffector.h:54
static size_t Write(SDL_RWops *context, const void *ptr, size_t size, size_t maxNum)
Write to the object. Return number of "packets" written.
Definition: RWOpsWrapper.h:109
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: AnimatedModel.cpp:155
bool Save(Serializer &dest) const override
Save as binary data. Return true if successful.
Definition: UnknownComponent.cpp:175
const String & GetFileName() const
Return source file name.
Definition: Scene.h:190
unsigned GetIndexCount() const
Return number of indices.
Definition: IndexBuffer.h:74
void SetClipboardText(const String &text)
Set clipboard text.
Definition: UI.cpp:632
Data structured used to hold data of UI elements that are rendered to texture.
Definition: UI.h:248
Color endColor_
Color for end of trails.
Definition: RibbonTrail.h:225
float velocityMin_
Particle velocity minimum.
Definition: ParticleEffect.h:403
Sound resource.
Definition: Sound.h:34
String entity_
Entity name.
Definition: AnimatedSprite2D.h:130
static const Matrix3x4 ZERO
Zero matrix.
Definition: Matrix3x4.h:709
PODVector< Matrix3x4 > skinMatrices_
Skinning matrices.
Definition: DecalSet.h:229
bool GetEnableLimit() const
Return enable limit.
Definition: ConstraintRevolute2D.h:62
void BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap &eventData=Variant::emptyVariantMap)
Broadcast a remote event to all client connections.
Definition: Network.cpp:535
Iterator Insert(const Iterator &dest, const ConstIterator &start, const ConstIterator &end)
Insert a vector partially by iterators.
Definition: Vector.h:324
SharedPtr< CollisionGeometryData > geometry_
Shared geometry data.
Definition: CollisionShape.h:296
HashMap< StringHash, PackageDownload > downloads_
Waiting or ongoing package file receive transfers.
Definition: Connection.h:303
void SetMaterial(Material *material)
Set material.
Definition: BillboardSet.cpp:255
bool GetForceGL2() const
Return whether OpenGL 2 use is forced. Effective only on OpenGL.
Definition: Graphics.h:393
Timer profilerTimer_
Profiler timer.
Definition: DebugHud.h:125
unsigned char * GetData() const
Return pixel data.
Definition: Image.h:171
void RemoveSoundSource(SoundSource *soundSource)
Remove a sound source. Called by SoundSource.
Definition: Audio.cpp:232
void UpdateSourceBatchesSpriter()
Update vertices for spriter animation.
Definition: AnimatedSprite2D.cpp:421
Matrix3 Inverse() const
Return inverse.
Definition: Matrix3.cpp:41
unsigned vertexSize_
Vertex size.
Definition: VertexBuffer.h:152
float minRadiusVariance_
Min radius variance.
Definition: ParticleEffect2D.h:314
FillMode GetFillMode() const
Return polygon fill mode.
Definition: Material.h:229
static const Variant & GetParameter(const VariantMap ¶meters, const String ¶meter, const Variant &defaultValue=Variant::EMPTY)
Get an engine startup parameter, with default value if missing.
Definition: Engine.cpp:968
ListNodeBase * tail_
Tail node pointer.
Definition: ListBase.h:118
bool InitializeQuery()
Ensure that the navigation mesh query is initialized. Return true if successful.
Definition: NavigationMesh.cpp:1545
bool SavePNG(const String &fileName) const
Save in PNG format. Return true if successful.
Definition: Image.cpp:1272
void SetRootBoneIndex(unsigned index)
Set root bone's index.
Definition: Skeleton.cpp:115
void SetView(Camera *camera)
Set camera view to render from.
Definition: OcclusionBuffer.cpp:115
unsigned Length() const
Return length.
Definition: Str.h:427
void EndThreadedUpdate()
End a threaded update. Notify components that marked themselves for delayed dirty processing.
Definition: Scene.cpp:819
void ReleaseShaders()
Reset all shader pointers.
Definition: Material.cpp:1136
unsigned FindBestResolutionIndex(int monitor, int width, int height, int refreshRate) const
Return index of the best resolution for requested width, height and refresh rate.
Definition: Graphics.cpp:279
const Vector< PODVector< unsigned > > & GetGeometryBoneMappings() const
Return per-geometry bone mappings.
Definition: AnimatedModel.h:163
const char & At(unsigned index) const
Return const char at index.
Definition: Str.h:323
bool alphaToCoverage_
Alpha-to-coverage flag.
Definition: Material.h:311
float x_
X coordinate.
Definition: Text.h:67
~JSONValue()
Destruct.
Definition: JSONValue.h:143
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Text3D.cpp:516
bool GetSortChildren() const
Return whether should sort child elements according to priority.
Definition: UIElement.h:499
Attribute animation instance.
Definition: Animatable.h:38
float zoom_
Zoom.
Definition: Camera.h:258
void SetScissorTest(bool enable, const Rect &rect=Rect::FULL, bool borderInclusive=true)
Set scissor test.
Definition: OGLGraphics.cpp:1868
bool IsDataLost() const
Return whether data is lost due to context loss.
Definition: GPUObject.h:67
void FromHSL(float h, float s, float l, float a=1.0f)
Set RGBA values from specified HSL values and alpha.
Definition: Color.cpp:94
Spline for creating smooth movement based on Speed along a set of Control Points modified by the Inte...
Definition: SplinePath.h:39
void SetWheelSuspensionStiffness(int wheel, float stiffness)
Set suspension stiffness for particular wheel.
Definition: RaycastVehicle.cpp:452
void SetTargetRotationEuler(const Vector3 &targetRotation)
Required for the editor, sets the target rotation in euler angles.
Definition: IKEffector.cpp:146
void SubscribeToEvent(StringHash eventType, EventHandler *handler)
Subscribe to an event that can be sent by any sender.
Definition: Object.cpp:142
unsigned GetAreaID() const
Return the user assigned area ID.
Definition: OffMeshConnection.h:72
void FromEulerAngles(float x, float y, float z)
Define from Euler angles (in degrees). Equivalent to Y*X*Z.
Definition: Quaternion.cpp:49
Vector2 otherBodyAnchor_
Other body anchor.
Definition: ConstraintRope2D.h:68
float GetRotationStartVariance() const
Return rotation start variance.
Definition: ParticleEffect2D.h:233
ObserverPositionSendMode
Send modes for observer position/rotation. Activated by the client setting either position or rotatio...
Definition: Connection.h:102
~File() override
Destruct. Close the file if open.
Definition: File.cpp:121
UIElement * GetFocusElement() const
Return focused element.
Definition: UI.h:157
unsigned GetTarget() const
Return surface's OpenGL target.
Definition: RenderSurface.h:114
void SetPerVertex(bool enable)
Set vertex lighting mode.
Definition: Light.cpp:278
Vector< String > resourceDirs_
Resource load directories.
Definition: ResourceCache.h:236
unsigned lockCount_
Lock number of vertices.
Definition: VertexBuffer.h:164
WeakPtr(T *ptr) noexcept
Construct from a raw pointer.
Definition: Ptr.h:314
PODVector< SpatialTimelineKey * > timelineKeys_
Current timeline keys.
Definition: SpriterInstance2D.h:109
unsigned GetMaxTriangles() const
Return maximum number of triangles.
Definition: OcclusionBuffer.h:144
unsigned GetNumIndices() const
Retur number of vertex indices in the decals.
Definition: DecalSet.h:155
static bool active
Profiler active. Default false.
Definition: EventProfiler.h:88
void Resize(unsigned newSize, const T &value)
Resize the vector and fill new elements with default value.
Definition: Vector.h:427
float GetFrequencyHz() const
Return frequency Hz.
Definition: ConstraintWeld2D.h:54
ObjectAnimation * GetObjectAnimation() const
Return object animation.
Definition: Animatable.cpp:423
void ApplyEffect()
Apply not continuously updated values such as the material, the number of particles and sorting mode ...
Definition: ParticleEmitter.cpp:338
unsigned Seek(unsigned position) override
Set position from the beginning of the memory area. Return actual new position.
Definition: MemoryBuffer.cpp:78
void SetDistanceFactor(float factor)
Set priority reduction distance factor. Default 0 (no effect).
Definition: NetworkPriority.cpp:67
PODVector< Drawable * > & result_
Result vector reference.
Definition: OctreeQuery.h:65
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: RigidBody.cpp:199
PODVector< unsigned char > GetScriptDataAttr() const
Get script file serialization attribute by calling a script function.
Definition: LuaScriptInstance.cpp:467
bool occludee_
Occludee flag.
Definition: Terrain.h:299
FlagSet operator^(const Enum value) const
Bitwise XOR against Enum value.
Definition: FlagSet.h:142
void SetRotatePerSecondVariance(float rotatePerSecondVariance)
Set rotate per second variance.
Definition: ParticleEffect2D.cpp:444
void SetRectangle(const IntRect &rectangle)
Set rectangle.
Definition: Sprite2D.cpp:118
bool internalEdge_
Use internal edge utility flag.
Definition: PhysicsWorld.h:352
bool boneBoundingBoxDirty_
Bone bounding box dirty flag.
Definition: AnimatedModel.h:253
Instanced draw call grouping key.
Definition: Batch.h:178
Light * firstLight_
First per-pixel light added this frame.
Definition: Drawable.h:385
int GetWidth() const
Return the current width.
Definition: AreaAllocator.h:47
void * mutex_
Mutex for the event, necessary for pthreads-based implementation.
Definition: Condition.h:53
UIElement * commandLine_
Container for the command line.
Definition: Console.h:149
~PhysicsWorld() override
Destruct.
Definition: PhysicsWorld.cpp:175
T * Reserve(const T &object)
Reserve and copy-construct an object.
Definition: Allocator.h:105
const Variant & GetVar(StringHash key) const
Return a user variable.
Definition: Node.cpp:1395
bool GetAutoReloadResources() const
Return whether automatic resource reloading is enabled.
Definition: ResourceCache.h:187
virtual ~DbConnection() override
Destruct.
Definition: ODBCConnection.cpp:53
static void EncodeUTF8(char *&dest, unsigned unicodeChar)
Encode Unicode character to UTF8. Pointer will be incremented.
Definition: Str.cpp:895
Console * CreateConsole()
Create the console and return it. May return null if engine configuration does not allow creation (he...
Definition: Engine.cpp:526
unsigned GetNumItems() const
Return number of items.
Definition: ListView.cpp:828
void RecreateJoint()
Recreate joint.
Definition: Constraint2D.cpp:180
IntRect scissor_
Scissor rectangle.
Definition: UIBatch.h:81
float clearDepth_
Clear depth. Affects clear command only.
Definition: RenderPath.h:170
void SetDoubleClickInterval(float interval)
Set UI element double click interval in seconds.
Definition: UI.cpp:639
ScreenModeParams screenParams_
Screen mode parameters.
Definition: Graphics.h:731
void Draw(View *view, Camera *camera, bool allowDepthWrite) const
Prepare and draw.
Definition: Batch.cpp:668
Menu UI element that displays a popup list view.
Definition: DropDownList.h:33
bool IsScaled() const
Return whether scene node scale affects billboards' size.
Definition: BillboardSet.h:119
VertexBuffer * GetInstancingBuffer() const
Return the instancing vertex buffer.
Definition: Renderer.h:379
b2PolygonShape boxShape_
Box shape.
Definition: CollisionBox2D.h:70
static const Matrix3 ZERO
Zero matrix.
Definition: Matrix3.h:332
int lastFontSize_
Last used text size.
Definition: LineEdit.h:138
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: CollisionShape.cpp:508
void DrawTriangles()
Draw submitted batches. Uses worker threads if enabled during SetSize().
Definition: OcclusionBuffer.cpp:200
HashMap & Populate(const T &key, const U &value)
Populate the map using variadic template. This handles the base case.
Definition: HashMap.h:355
float Right() const
Return right coordinate.
Definition: Rect.h:253
void GetChildrenWithTag(PODVector< Node * > &dest, const String &tag, bool recursive=false) const
Return child scene nodes with a specific tag.
Definition: Node.cpp:1279
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Texture2DArray.cpp:125
int GetHeight() const
Return window height in pixels.
Definition: Graphics.h:348
unsigned viewMask_
View mask.
Definition: Camera.h:262
Sprite2D * GetSprite(const String &name) const
Return sprite.
Definition: SpriteSheet2D.cpp:116
void Erase(unsigned pos, unsigned length=1)
Erase a range of JSON values.
Definition: JSONValue.cpp:226
const String & GetClipboardText() const
Return clipboard text.
Definition: UI.cpp:920
void GotoPrev()
Go to the previous node.
Definition: HashBase.h:86
int unusedStreamSize_
Unused stream bytes from previous frame.
Definition: SoundSource.h:193
PODVector< Vector3 > clippedVertices_
Internal vector for clipped vertices.
Definition: Polyhedron.h:116
Color colors_[MAX_UIELEMENT_CORNERS]
Colors.
Definition: UIElement.h:686
const String & GetPixelShaderDefineExcludes() const
Return pixel shader define excludes.
Definition: Technique.h:129
void SetScaled(bool enable)
Set whether scene node scale affects billboards' size.
Definition: ParticleEffect.cpp:460
unsigned char setWeight_
Set weight command.
Definition: AnimationController.h:74
void Update(const FrameInfo &frame) override
Update before octree reinsertion. Is called from a worker thread.
Definition: AnimatedModel.cpp:228
float GetValue() const
Return slider current value.
Definition: Slider.h:85
Animatable(Context *context)
Construct.
Definition: Animatable.cpp:63
Vector2 Max() const
Return right-bottom corner position.
Definition: Rect.h:244
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Handle the scene subsystem update event, step simulation here.
Definition: PhysicsWorld.cpp:791
void CopyBaseAttributes()
Template version of copying base class attributes to derived class.
Definition: Context.h:271
static const StringVector emptyStringVector
Empty string vector.
Definition: Variant.h:1393
unsigned viewMask_
Drawable layers to include.
Definition: OctreeQuery.h:69
const Vector< Bone > & GetBones() const
Return all bones.
Definition: Skeleton.h:108
Custom geometry component.
Definition: CustomGeometry.h:48
static void RegisterObject(Context *context)
Register object factory.
Definition: OffMeshConnection.cpp:54
void SetBlendMode(BlendMode mode)
Set blend mode.
Definition: Technique.cpp:99
void SetLayoutSpacing(int spacing)
Set layout spacing.
Definition: UIElement.cpp:1060
void DumpResources(bool dumpFileName=false)
Dump information of all resources to the log.
Definition: Engine.cpp:618
void OnScreenModeChanged()
Called when screen mode is successfully changed by the backend.
Definition: Graphics.cpp:569
void HandleKeyDown(StringHash eventType, VariantMap &eventData)
Handle keypress event.
Definition: UI.cpp:1955
void SetSorted(bool enable)
Set whether tails are sorted by distance. Default false.
Definition: RibbonTrail.cpp:836
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Sprite.cpp:110
static unsigned GetRGBA16Format()
Return the API-specific RGBA 16-bit texture format.
Definition: OGLGraphics.cpp:2589
void SetOtherBodyAnchor(const Vector2 &anchor)
Set other body anchor.
Definition: ConstraintDistance2D.cpp:71
Connection * GetServerConnection() const
Return the connection to the server. Null if not connected.
Definition: Network.cpp:668
bool AddManualResource(Resource *resource)
Add a manually created resource. Must be uniquely named within its type.
Definition: ResourceCache.cpp:162
BoundingBox lastWorldBoundingBox_
Last world-space bounding box.
Definition: Zone.h:146
RayOctreeQuery(PODVector< RayQueryResult > &result, const Ray &ray, RayQueryLevel level=RAY_TRIANGLE, float maxDistance=M_INFINITY, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with ray and query parameters.
Definition: OctreeQuery.h:227
Iterator Insert(const Iterator &dest, const T *start, const T *end)
Insert elements.
Definition: Vector.h:927
Condition()
Construct.
Definition: Condition.cpp:62
bool ignoreTransformChanges_
Internal flag to ignore transform changes because it came from us, used in OnCrowdAgentReposition().
Definition: CrowdAgent.h:238
int GetMinInstances() const
Return minimum number of instances required in a batch group to render as instanced.
Definition: Renderer.h:316
void SetBonesEnabledAttr(const VariantVector &value)
Set bones' animation enabled attribute.
Definition: AnimatedModel.cpp:806
const String & GetText() const
Return text.
Definition: Text.h:136
Helper class used for StringHash reversing.
Definition: StringHashRegister.h:35
String typeName_
Type name.
Definition: Object.h:64
bool IsSorted() const
Return whether tails are sorted.
Definition: RibbonTrail.h:149
float GetAngle() const
Return angle.
Definition: CollisionBox2D.h:61
void ProcessUnknownMessage(int msgID, MemoryBuffer &msg)
Process unknown message. All unknown messages are forwarded as an events.
Definition: Connection.cpp:1644
RigidBody2D * GetOtherBody() const
Return other body.
Definition: Constraint2D.h:68
static void Sleep(unsigned mSec)
Sleep for a number of milliseconds.
Definition: Timer.cpp:180
T & operator[](int index)
Subscript the object if applicable.
Definition: Ptr.h:145
HttpRequest(const String &url, const String &verb, const Vector< String > &headers, const String &postData)
Construct with parameters.
Definition: HttpRequest.cpp:39
unsigned activeTexture_
Active texture unit.
Definition: OGLGraphicsImpl.h:116
SharedPtr< Material > material_
Material that is set to the model.
Definition: UIComponent.h:67
IntVector2 packetCounter_
Packet count in the last second, x - packets in, y - packets out.
Definition: Connection.h:343
Vector< VariantVector > rows_
Fetched rows from the resultset.
Definition: ODBCResult.h:68
float GetRegionMergeSize() const
Return region merge size.
Definition: NavigationMesh.h:222
AbstractFile()
Construct.
Definition: AbstractFile.h:36
unsigned vertexCount_
Number of used vertices.
Definition: Geometry.h:129
bool updateEnabled_
Automatic simulation update enabled flag.
Definition: PhysicsWorld2D.h:236
unsigned GetTarget() const
Return texture's target. Only used on OpenGL.
Definition: Texture.h:166
unsigned Count() const
Return number of set bits.
Definition: ReplicationState.h:112
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: ParticleEmitter.cpp:438
void HandleLineEditKey(StringHash eventType, VariantMap &eventData)
Handle unhandled key on the line edit for scrolling the history.
Definition: Console.cpp:402
void VerifyChildAlignment()
Verify that child elements have proper alignment for layout mode.
Definition: UIElement.cpp:2228
void SetMaxFps(int fps)
Set maximum frames per second. The engine will sleep if FPS is higher than this.
Definition: Engine.cpp:568
PODVector< UIBatch > uiBatches_
Text UI batches.
Definition: Text3D.h:198
Debug geometry rendering component. Should be added only to the root scene node.
Definition: DebugRenderer.h:91
T & Front()
Return first element.
Definition: Vector.h:1131
void AllocateBuckets(unsigned size, unsigned numBuckets)
Allocate bucket head pointers + room for size and bucket count variables.
Definition: HashBase.cpp:30
Context()
Construct.
Definition: Context.cpp:123
T Mod(T x, T y)
Return remainder of X/Y for float values.
Definition: MathDefs.h:170
void SetNumTextureFrames(unsigned number)
Set number of texture frames.
Definition: ParticleEffect.cpp:721
WeakArrayPtr< T > & operator=(const SharedArrayPtr< T > &rhs)
Assign from a shared array pointer.
Definition: ArrayPtr.h:264
Intersection IsInside(const IntVector2 &point) const
Test whether a point is inside.
Definition: Rect.h:409
bool IsDesktop() const
Return whether requires desktop level hardware.
Definition: Technique.h:111
const Vector3 & GetPadding() const
Return navigation mesh bounding box padding.
Definition: NavigationMesh.h:237
Vector< ContactInfo > beginContactInfos_
Begin contact infos.
Definition: PhysicsWorld2D.h:278
virtual void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers)
React to a key press.
Definition: UIElement.h:187
PListValue()
Construct.
Definition: PListFile.cpp:42
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector4.h:213
unsigned loadByteCodeSize_
Byte code size for asynchronous loading.
Definition: ScriptFile.h:154
String text_
UTF-8 encoded text.
Definition: Text.h:225
bool GetDisableCollision() const
Return whether collisions between connected bodies are disabled.
Definition: Constraint.h:143
Hash map key-value pair with const key.
Definition: HashMap.h:44
HashMap< unsigned short, unsigned short > geometryRemapping_
Geometry remapping table for 2-pass state and distance sort.
Definition: Batch.h:254
void FixInterpolation()
Fix interpolation by copying data from loop start to loop end (looped), or adding silence (oneshot)....
Definition: Sound.cpp:295
void ResetSilent()
Reset all animating bones to initial positions without marking the nodes dirty. Requires the node dir...
Definition: Skeleton.cpp:138
bool GetLineAntiAlias() const
Return whether line antialiasing is enabled.
Definition: Graphics.h:528
const String & GetString() const
Return string.
Definition: PListFile.cpp:207
ConstraintGear2D(Context *context)
Construct.
Definition: ConstraintGear2D.cpp:37
void SetEnabled(const String &tag, bool active)
Enable/disable commands and rendertargets by tag.
Definition: RenderPath.cpp:363
bool IsEmitting() const
Return whether is currently emitting.
Definition: ParticleEmitter.h:97
const Vector3 & GetMinDirection() const
Return negative direction limit.
Definition: ParticleEffect.h:257
virtual void GetDependencyNodes(PODVector< Node * > &dest)
Return the depended on nodes to order network updates.
Definition: Component.cpp:112
void SetLinearOffset(const Vector2 &linearOffset)
Set linear offset.
Definition: ConstraintMotor2D.cpp:59
void SetLayoutBorder(const IntRect &border)
Set layout border.
Definition: UIElement.cpp:1066
Vector2 GetCharSize(unsigned index)
Return size of character by index.
Definition: Text3D.cpp:493
unsigned GetNumActiveOccluders() const
Return number of occluders that were actually rendered. Occluders may be rejected if running out of t...
Definition: View.h:178
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Ptr.h:220
SharedPtr< Texture2D > CreateFaceTexture()
Create a texture for font rendering.
Definition: FontFace.cpp:98
bool Erase(const T &key)
Erase a key. Return true if was found.
Definition: HashSet.h:340
Vector< WeakPtr< View > > views_
Views that have been processed this frame.
Definition: Renderer.h:524
SharedPtr< Texture2D > loadTexture_
Texture used while loading.
Definition: Sprite2D.h:107
void WaitForResource(StringHash type, StringHash nameHash)
Wait and finish possible loading of a resource when being requested from the cache.
void ApplyTorqueImpulse(const Vector3 &torque)
Apply torque impulse.
Definition: RigidBody.cpp:561
PODVector< InstanceData > instances_
Instance data.
Definition: Batch.h:172
static unsigned GetReadableDepthFormat()
Return the API-specific readable hardware depth format, or 0 if not supported.
Definition: OGLGraphics.cpp:2682
unsigned GetNumChars() const
Return number of characters.
Definition: Text3D.cpp:478
bool SetBool(const String &name, bool value)
Set a bool attribute.
Definition: XMLElement.cpp:320
bool GetLineAntiAlias() const
Return whether line antialiasing is enabled.
Definition: DebugRenderer.h:155
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Draw the agents' pathing debug data.
Definition: CrowdManager.cpp:134
void SetAutoReloadResources(bool enable)
Enable or disable automatic reloading of resources as files are modified. Default false.
Definition: ResourceCache.cpp:441
JSONValue & operator[](unsigned index)
Return JSON value at index.
Definition: JSONValue.cpp:186
T * Buffer() const
Return the buffer with right type.
Definition: Vector.h:1160
LightBatchQueue * GetLightQueue() const
Return light queue. Called by View.
Definition: Light.h:315
void GotoNext()
Go to the next node.
Definition: ListBase.h:75
void SetData(const unsigned char *pixelData)
Set new image data.
Definition: Image.cpp:961
bool operator==(const UniquePtr< U > &rhs) const
Test for equality with another unique pointer.
Definition: Ptr.h:622
unsigned CountSetBits(unsigned value)
Count the number of set bits in a mask.
Definition: MathDefs.h:271
void RegisterPath(const String &pathName)
Register a path as allowed to access. If no paths are registered, all are allowed....
Definition: FileSystem.cpp:759
unsigned GetNumGeometries() const
Return number of geometries.
Definition: Model.h:164
Lua file.
Definition: LuaFile.h:34
void SetColorFrame(unsigned index, const ColorFrame &colorFrame)
Set color animation frame at index. If index is greater than number of color frames,...
Definition: ParticleEffect.cpp:639
void SetTmxFileAttr(const ResourceRef &value)
Set tile map file attribute.
Definition: TileMap2D.cpp:177
void ReplaceUTF8(unsigned index, unsigned unicodeChar)
Replace Unicode character at index from UTF8 content.
Definition: Str.cpp:830
BlendMode blendMode_
Blend mode.
Definition: ParticleEffect2D.h:320
GlyphLocation(float x, float y, const FontGlyph *glyph)
Construct.
Definition: Text.h:59
virtual bool Compare(const CustomVariantValue &rhs) const
Compare to another custom value.
Definition: Variant.h:202
void SetOtherConstraint(Constraint2D *constraint)
Set other constraint.
Definition: ConstraintGear2D.cpp:70
void SetRecursive(bool enable)
Set whether geometry is automatically collected from child nodes. Default true.
Definition: Navigable.cpp:51
void Clear(ClearTargetFlags flags, const Color &color=Color(0.0f, 0.0f, 0.0f, 0.0f), float depth=1.0f, unsigned stencil=0)
Clear any or all of rendertarget, depth buffer and stencil buffer.
Definition: OGLGraphics.cpp:640
bool Save(Serializer &dest) const override
Save the image to a stream. Regardless of original format, the image is saved as png....
Definition: Image.cpp:848
void Resize(unsigned size)
Set size.
Definition: VectorBuffer.cpp:130
PODVector< Vector3 > vertices_
Vertices from geometries.
Definition: NavBuildData.h:64
const String & GetTextureName(TextureUnit unit) const
Return texture resource name.
Definition: RenderPath.cpp:288
bool temporary_
Temporary flag.
Definition: Serializable.h:148
HashMap< StringHash, SharedPtr< Resource > > resources_
Resources.
Definition: ResourceCache.h:58
void SetDampingRatio(float dampingRatio)
Set damping ratio.
Definition: ConstraintWheel2D.cpp:144
void SetLightMask(unsigned mask)
Set light mask for patches. Is and'ed with light's and zone's light mask to see if the object should ...
Definition: Terrain.cpp:428
ConstIterator & operator++()
Preincrement the pointer.
Definition: HashMap.h:181
bool Connect(const String &address, unsigned short port, Scene *scene, const VariantMap &identity=Variant::emptyVariantMap)
Connect to a server using UDP protocol. Return true if connection process successfully started.
Definition: Network.cpp:369
float offsetY_
Y offset for viewport transform.
Definition: OcclusionBuffer.h:221
float tangentialAccelVariance_
Tangential acceleration variance.
Definition: ParticleEffect2D.h:284
String tag_
Tag name.
Definition: RenderPath.h:76
const SDL_GLContext & GetGLContext()
Return the GL Context.
Definition: OGLGraphicsImpl.h:108
bool sortOrderDirty_
Child priority sorting dirty flag.
Definition: UIElement.h:807
void Draw(Graphics *graphics)
Draw.
Definition: Geometry.cpp:176
RigidBody * GetOwnBody() const
Return rigid body in own scene node.
Definition: Constraint.h:110
Rect(const float *data) noexcept
Construct from a float array.
Definition: Rect.h:63
void QueueRenderSurface(RenderSurface *renderTarget)
Queue a render surface's viewports for rendering. Called by the surface, or by View.
Definition: Renderer.cpp:792
unsigned frameNumber_
Shader parameter source framenumber.
Definition: OGLShaderProgram.h:109
void GetEventFrames(float beginTime, float endTime, PODVector< const VAnimEventFrame * > &eventFrames)
Return event frames.
Definition: ValueAnimationInfo.cpp:157
bool IsNegative() const
Return whether light has negative (darkening) color.
Definition: Light.h:303
bool IsDragging() const
Return whether a drag is in progress.
Definition: UI.h:218
void SetDefines(const String &defines)
Set defines.
Definition: OGLShaderVariation.cpp:193
void RunFrame()
Run one frame.
Definition: Engine.cpp:471
PhysicsWorld * GetPhysicsWorld() const
Return physics world.
Definition: Constraint.h:101
void UpdateProgressBar()
Update ProgressBar knob position & size.
Definition: ProgressBar.cpp:140
bool Create()
Compile the shader. Return true if successful.
Definition: OGLShaderVariation.cpp:90
void AddEventReceiver(Object *receiver, StringHash eventType)
Add event receiver.
Definition: Context.cpp:406
virtual StringHash GetType() const =0
Return type hash.
const Vector< WeakPtr< Component > > GetListeners() const
Return listener components.
Definition: Node.h:554
DebugTriangle(const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, unsigned color)
Construct with start and end positions and color.
Definition: DebugRenderer.h:72
const TmxLayer2D * tmxLayer_
Tmx layer.
Definition: TileMapLayer2D.h:115
unsigned GetMask() const
Return the user assigned mask.
Definition: OffMeshConnection.h:69
float GetShadowDistance() const
Return shadow draw distance.
Definition: Drawable.h:189
int Compare(const String &str, bool caseSensitive=true) const
Return comparison result with a string.
Definition: Str.cpp:723
void SetContinuousPhysics(bool enable)
Set continuous physics.
Definition: PhysicsWorld2D.cpp:398
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: CollisionShape2D.cpp:288
long GetNumAffectedRows() const
Return number of affected rows by the DML query or -1 if the number of affected rows is not available...
Definition: ODBCResult.h:51
bool Update(float timeStep)
Advance time position and apply. Return true when the animation is finished. No-op when the target ob...
Definition: ValueAnimationInfo.cpp:67
bool specular_
Specular lighting flag.
Definition: Material.h:317
void ProcessClickBegin(const IntVector2 &windowCursorPos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, bool cursorVisible)
Handle button or touch begin.
Definition: UI.cpp:1435
bool tiled_
Tiled flag.
Definition: BorderImage.h:131
Material * GetMaterial() const
Return material.
Definition: BillboardSet.cpp:352
bool GetEnableAnchor() const
Return whether anchor positioning & sizing is enabled.
Definition: UIElement.h:457
bool SetSize(int size, unsigned format, TextureUsage usage=TEXTURE_STATIC, int multiSample=1)
Set size, format, usage and multisampling parameter for rendertargets. Note that cube textures always...
Definition: TextureCube.cpp:258
float angleVariance_
Angle variance.
Definition: ParticleEffect2D.h:274
void UpdateSpriterAnimation(float timeStep)
Update spriter animation.
Definition: AnimatedSprite2D.cpp:414
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Renderer2D.cpp:117
const Variant & GetVar(const StringHash &key) const
Return a user variable.
Definition: UIElement.cpp:1695
SharedPtr< Material > material_
Material.
Definition: Drawable.h:98
T Floor(T x)
Round value down.
Definition: MathDefs.h:188
void SetShadowMapFilter(Object *instance, ShadowMapFilter functionPtr)
Set post processing filter to the shadow map.
Definition: Renderer.cpp:435
HashSet< Technique * > shaderErrorDisplayed_
Techniques for which missing shader error has been displayed.
Definition: Renderer.h:530
const String & GetProperty(const String &name) const
Return property.
Definition: TileMapDefs2D.cpp:180
Vector2 anchor_
Anchor.
Definition: ConstraintWheel2D.h:86
PODVector< Drawable * > rayQueryDrawables_
Ray query temporary list of drawables.
Definition: Octree.h:214
virtual IntVector2 ScreenToElement(const IntVector2 &screenPosition)
Convert screen coordinates to element coordinates.
Definition: UIElement.cpp:462
HashMap< StringHash, Vector< SharedPtr< ShaderVariation > > > extraVertexShaders_
Vertex shaders with extra defines from the renderpath.
Definition: Technique.h:182
float fontSubpixelThreshold_
Maxmimum font size for subpixel glyph positioning and oversampling (default is 12).
Definition: UI.h:409
void ProcessDragCancel()
Handle clean up on a drag cancel.
Definition: UI.cpp:2110
@ AUTO_SOLVE
Definition: IKSolver.h:165
Geometry * GetLightGeometry(Light *light)
Return volume geometry for a light.
Definition: Renderer.cpp:816
VariantMap & GetEventDataMap()
Return a preallocated map for event data. Used for optimization to avoid constant re-allocation of ev...
Definition: Context.cpp:241
void SetBlendMode(BlendMode mode)
Set blend mode.
Definition: BorderImage.cpp:133
Variant(VariantType type, const String &value)
Construct from type and value.
Definition: Variant.h:530
NavigationPathPointFlag
A flag representing the type of path point- none, the start of a path segment, the end of one,...
Definition: NavigationMesh.h:73
GraphicsImpl * GetImpl() const
Return graphics implementation, which holds the actual API-specific resources.
Definition: Graphics.h:327
const Vector< AttributeInfo > * GetAttributes() const override
Return attribute descriptions, or null if none defined.
Definition: LuaScriptInstance.h:78
SharedPtr< Technique > defaultTechnique_
Default non-textured material technique.
Definition: Renderer.h:478
void WriteTiles(Serializer &dest, int x, int z) const
Write tiles data.
Definition: DynamicNavigationMesh.cpp:754
static Sprite2D * LoadFromResourceRef(Object *object, const ResourceRef &value)
Load sprite from ResourceRef.
Definition: Sprite2D.cpp:203
Node * Tail() const
Return the tail node.
Definition: HashSet.h:522
bool GetAutoAspectRatio() const
Return auto aspect ratio flag.
Definition: Camera.h:143
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Octree.cpp:341
void Define(const Vector3 &normal, const Vector3 &point)
Define from a normal vector and a point on the plane.
Definition: Plane.h:74
IntVector2 GetDesktopResolution(int monitor) const
Return the desktop resolution.
Definition: Graphics.cpp:303
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Drawable.cpp:374
float GetStartParticleSize() const
Return start particle size.
Definition: ParticleEffect2D.h:191
bool fboDirty_
Need FBO commit flag.
Definition: OGLGraphicsImpl.h:156
Animation trigger point.
Definition: Animation.h:102
bool flipY_
Flip Y.
Definition: StaticSprite2D.h:150
void RemoveInstanceDefault()
Remove instance's default values if they are set previously.
Definition: Serializable.cpp:670
void ApplySceneToOriginalPose()
Definition: IKSolver.cpp:453
void SetOpacity(float opacity)
Set opacity.
Definition: Text3D.cpp:343
static const Matrix4 ZERO
Zero matrix.
Definition: Matrix4.h:733
bool operator==(const ListIteratorBase &rhs) const
Test for equality with another iterator.
Definition: ListBase.h:69
void SetNumLevels(unsigned levels)
Set number of requested mip levels. Needs to be called before setting size.
Definition: Texture.cpp:66
Scene * GetScene() const
Return scene.
Definition: Node.h:362
bool GetSRGB() const
Return whether the main window is using sRGB conversion on write.
Definition: Graphics.h:384
float GetHeight(const Vector3 &worldPosition) const
Return height at world coordinates.
Definition: Terrain.cpp:555
AutoRemoveMode GetAutoRemoveMode() const
Return automatic removal mode on sound playback completion.
Definition: SoundSource.h:105
@ LOAD_SCENE_AND_RESOURCES
Default mode: preload resources used by the scene first, then load the scene content.
Definition: Scene.h:53
PhysicsWorld2D(Context *context)
Construct.
Definition: PhysicsWorld2D.cpp:49
void FromString(const String &type, const String &value)
Set from typename and value strings. Pointers will be set to null, and VariantBuffer or VariantMap ty...
Definition: Variant.cpp:255
ParticleEmitter(Context *context)
Construct.
Definition: ParticleEmitter.cpp:46
void OnDeviceLost() override
Mark the GPU resource destroyed on graphics context destruction.
Definition: OGLShaderVariation.cpp:50
bool useRendererStats_
Show 3D geometry primitive/batch count flag.
Definition: DebugHud.h:131
float beginTime_
Begin time.
Definition: ValueAnimation.h:161
Matrix3x4(const Vector3 &translation, const Quaternion &rotation, const Vector3 &scale) noexcept
Construct from translation, rotation and nonuniform scale.
Definition: Matrix3x4.h:164
Material * GetMaterial() const
Return material.
Definition: DecalSet.cpp:513
float ProjectOntoAxis(const Vector3 &axis) const
Project direction vector onto axis.
Definition: Vector3.h:360
void CalculateBoundingBox()
Calculate local-space bounding box.
Definition: DecalSet.cpp:147
const Vector2 & GetVertex2() const
Return vertex 2.
Definition: CollisionEdge2D.h:54
Vector3 cachedWorldScale_
Cached world scale for determining if the constraint position needs update.
Definition: Constraint.h:189
void RemoveEventHandlers() override
Remove all scripted event handlers.
Definition: ScriptFile.cpp:249
CollisionGeometryDataCache & GetConvexCache()
Return convex collision geometry cache.
Definition: PhysicsWorld.h:272
Vector3 directionMin_
Particle direction minimum.
Definition: ParticleEffect.h:379
bool Erase(const T &key)
Erase a pair by key. Return true if was found.
Definition: HashMap.h:407
const Matrix3x4 & GetMatrix3x4() const
Return a Matrix3x4 or identity on type mismatch.
Definition: Variant.h:1280
void SetLogStatistics(bool enable)
Set whether to log data in/out statistics.
Definition: Connection.cpp:249
void SetVerticalAlignment(VerticalAlignment align)
Set vertical alignment.
Definition: Text3D.cpp:247
bool dirty_
Cleanup required flag.
Definition: Context.h:62
const wchar_t & At(unsigned index) const
Return const char at index.
Definition: Str.h:602
unsigned GetDefaultTextureAnisotropy() const
Return default texture max. anisotropy level.
Definition: Graphics.h:489
bool IsElementEventSender() const
Return whether element should send child added / removed events by itself. If false,...
Definition: UIElement.h:646
void Close()
Close the file.
Definition: File.cpp:384
void SetZoom(float zoom)
Set zoom.
Definition: Camera.cpp:163
void SetWestNeighbor(Terrain *west)
Set west (negative X) neighbor terrain for seamless LOD changes across terrains.
Definition: Terrain.cpp:302
const HashMap< Pair< unsigned char, unsigned char >, unsigned > & GetVertexAttributes() const
Return semantic to vertex attributes location mappings used by the shader.
Definition: OGLShaderProgram.h:71
Vector3 GetLinearVelocity() const
Return linear velocity.
Definition: RigidBody.cpp:618
void SetMaterialsAttr(const ResourceRefList &value)
Set materials attribute.
Definition: StaticModel.cpp:379
void GetDrawables(OctreeQuery &query) const
Return drawable objects by a query.
Definition: Octree.cpp:495
bool CheckViewportRead(const RenderPathCommand &command)
Check if a command reads the destination render target.
Definition: View.cpp:1905
void Release()
Stop sound output and release the sound buffer.
Definition: Audio.cpp:316
float minPriority_
Minimum priority.
Definition: NetworkPriority.h:73
~Time() override
Destruct. Reset the low-resolution timer period if set.
Definition: Timer.cpp:67
void SetCapsule(float diameter, float height, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a capsule.
Definition: CollisionShape.cpp:637
void SetClipPlane(bool enable, const Plane &clipPlane=Plane::UP, const Matrix3x4 &view=Matrix3x4::IDENTITY, const Matrix4 &projection=Matrix4::IDENTITY)
Set a custom clipping plane. The plane is specified in world space, but is dependent on the view and ...
Definition: OGLGraphics.cpp:1957
bool SetSize(unsigned vertexCount, const PODVector< VertexElement > &elements, bool dynamic=false)
Set size, vertex elements and dynamic mode. Previous data will be lost.
Definition: VertexBuffer.cpp:74
Tile map component.
Definition: TileMap2D.h:35
float GetRadialAcceleration() const
Return radial acceleration.
Definition: ParticleEffect2D.h:164
void OnSetEnabled() override
Handle enabled/disabled state change. Changes update event subscription.
Definition: LogicComponent.cpp:46
String GetAppPreferencesDir(const String &org, const String &app) const
Return the application preferences directory.
Definition: FileSystem.cpp:742
LinkedList(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: LinkedList.h:62
int occlusionBufferSize_
Occlusion buffer width.
Definition: Renderer.h:564
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Removes all existing child nodes and components first. Return true if successful...
Definition: Scene.cpp:182
void SetKnots(const Vector< Variant > &knots)
Set the knots of the spline.
Definition: Spline.h:92
bool flipVertical_
Flip vertical flag.
Definition: Camera.h:278
Defines one or more vertex buffers, an index buffer and a draw range.
Definition: Geometry.h:38
Font * GetFont() const
Return font.
Definition: Text3D.cpp:388
String GetEffectivePixelShaderDefines() const
Return the effective pixel shader defines, accounting for excludes. Called internally by Renderer.
Definition: Technique.cpp:198
PList value.
Definition: PListFile.h:55
static const TypeInfo * GetTypeInfoStatic()
Return type info static.
Definition: Object.h:101
Timer packetCounterTimer_
Packet count timer which resets every 1s.
Definition: Connection.h:345
void SetInterpolation(bool enable)
Set whether to interpolate between simulation steps.
Definition: PhysicsWorld.cpp:346
const Matrix3 & GetMatrix3() const
Return a Matrix3 or identity on type mismatch.
Definition: Variant.h:1274
virtual void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
React to mouse drag begin.
Definition: UIElement.cpp:426
PODVector< Drawable2D * > drawables_
Drawables.
Definition: Renderer2D.h:121
virtual void OnDragEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor *cursor)
React to mouse drag end.
Definition: UIElement.cpp:438
b2Joint * GetJoint() const
Return Box2D joint.
Definition: Constraint2D.h:77
float GetCcdRadius() const
Return continuous collision detection swept sphere radius.
Definition: RigidBody.cpp:688
void SetMorphWeight(unsigned index, float weight)
Set vertex morph weight by index.
Definition: AnimatedModel.cpp:552
String depthStencilName_
Depth-stencil output name.
Definition: RenderPath.h:164
TerrainPatch(Context *context)
Construct.
Definition: TerrainPatch.cpp:48
void IncDrawableCount()
Increase drawable object count recursively.
Definition: Octree.h:112
Iterator End()
Return iterator to the end.
Definition: Vector.h:497
virtual bool HasMutableGlyphs() const
Return if font face uses mutable glyphs.
Definition: FontFace.h:80
void PushUserType(const T *userType)
Push user type to stack.
Definition: LuaFunction.h:68
ListView * rowContainer_
Container for text rows.
Definition: Console.h:147
float attenuation_
Attenuation.
Definition: SoundSource.h:140
bool IsVisible(const BoundingBox &worldSpaceBox) const
Test a bounding box for visibility. For best performance, build depth hierarchy first.
Definition: OcclusionBuffer.cpp:336
unsigned GetDataSize() const
Return total sound data size.
Definition: Sound.h:85
CrowdAgentRequestedTarget GetRequestedTargetType() const
Return the agent's requested target type, if any.
Definition: CrowdAgent.h:137
@ FONT_HINT_LEVEL_NONE
Completely disable font hinting. Output will be blurrier but more "correct".
Definition: UI.h:39
String name_
Name.
Definition: Attribute.h:104
Color(const Vector4 &color)
Construct from 4-vector.
Definition: Color.h:108
bool IsFixedWidth() const
Return true if width is fixed.
Definition: UIElement.h:442
float Length() const
Return length.
Definition: Vector2.h:301
T & operator[](unsigned index)
Return element at index.
Definition: Vector.h:812
Matrix4 GetMatrix4(const String &name) const
Return a Matrix4 attribute, or zero matrix if missing.
Definition: XMLElement.cpp:985
bool Equals(const Vector2 &rhs) const
Test for equality with another vector with epsilon.
Definition: Vector2.h:325
int GetHeight() const
Return height.
Definition: RenderSurface.cpp:87
const float * Data() const
Return float data.
Definition: Matrix3.h:263
Octree * GetRoot() const
Return octree root.
Definition: Octree.h:88
RefCounted()
Construct. Allocate the reference count structure and set an initial self weak reference.
Definition: RefCounted.cpp:32
virtual unsigned Write(const void *data, unsigned size)=0
Write bytes to the stream. Return number of bytes actually written.
bool shadowed_
Shadowed flag.
Definition: IndexBuffer.h:115
static unsigned GetRGBFormat()
Return the API-specific RGB texture format.
Definition: OGLGraphics.cpp:2579
bool GetFlushGPU() const
Return whether the GPU command buffer is flushed each frame.
Definition: Graphics.h:390
unsigned char GetDrawableFlags() const
Return drawable flags.
Definition: Drawable.h:183
FileSystem(Context *context)
Construct.
Definition: FileSystem.cpp:285
void SetWheelSkidInfoCumulative(int wheel, float skid)
Set cumulative skid info.
Definition: RaycastVehicle.cpp:368
float GetMaxSpeed() const
Get the agent's max velocity.
Definition: CrowdAgent.h:154
Vector2 Center() const
Return center.
Definition: Rect.h:200
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: TmxFile2D.cpp:393
bool IsLooped() const
Return whether is looped.
Definition: Sound.h:97
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event.
Definition: UIElement.cpp:2238
~UIComponent() override
Destruct.
T Fract(T value)
Return fractional part of passed value in range [0, 1).
Definition: MathDefs.h:185
WeakPtr< SpriteSheet2D > spriteSheet_
Sprite sheet.
Definition: Sprite2D.h:105
unsigned GetMaxLights() const
Return maximum number of per-pixel lights.
Definition: Terrain.h:181
BatchGroupKey()=default
Construct undefined.
GPUObjectHandle object_
Object pointer or name.
Definition: GPUObject.h:75
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RibbonTrail.cpp:164
signed char * repeat_
Loop start.
Definition: Sound.h:118
void SetWarmStarting(bool enable)
Set warm starting.
Definition: PhysicsWorld2D.cpp:393
void SetAttachedConstraint(Constraint2D *constraint)
Set attached constriant (for gear).
Definition: Constraint2D.cpp:143
void OnNodeSet(Node *node) override
Destroys and creates the tree.
Definition: IKSolver.cpp:526
unsigned GetMaxVertices() const
Return maximum number of decal vertices.
Definition: DecalSet.h:158
void SetTerrain(unsigned lodLevel=0)
Set as a terrain. Only works if the same scene node contains a Terrain component.
Definition: CollisionShape.cpp:707
String name_
Joystick name.
Definition: Input.h:117
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintRevolute2D.cpp:45
VerticalAlignment GetVerticalAlignment() const
Return vertical alignment. If pivot has been adjusted to a custom vertical setting,...
Definition: UIElement.cpp:1507
float CalculateScaledTime(float currentTime, bool &finished) const
Calculate scaled time.
Definition: ValueAnimationInfo.cpp:128
~Serializable() override
Destruct.
SharedPtr< XMLFile > LoadTSXFile(const String &source)
Load TSX file.
Definition: TmxFile2D.cpp:597
void ApplyForceToCenter(const Vector2 &force, bool wake)
Apply force to center.
Definition: RigidBody2D.cpp:335
unsigned long long memoryBudget_
Memory budget.
Definition: ResourceCache.h:54
Vector2 patchWorldOrigin_
Origin of patches on the XZ-plane.
Definition: Terrain.h:271
unsigned GetTotalSize() const
Return total size of the package file.
Definition: PackageFile.h:74
void SetObjectAnimationAttr(const ResourceRef &value)
Set object animation attribute.
Definition: Animatable.cpp:452
bool SetDouble(const String &name, double value)
Set a double attribute.
Definition: XMLElement.cpp:357
BoundingBox boundingBox_
Bounds of area to mark.
Definition: NavArea.h:63
void Release() override
Release the texture.
Definition: OGLTexture2D.cpp:72
void * face_
FreeType face. Non-null after creation only in dynamic mode.
Definition: FontFaceFreeType.h:61
Node * Instantiate(Deserializer &source, const Vector3 &position, const Quaternion &rotation, CreateMode mode=REPLICATED)
Instantiate scene content from binary data. Return root node if successful.
Definition: Scene.cpp:528
void SetScriptFileAttr(const ResourceRef &value)
Set script file attribute.
Definition: LuaScriptInstance.cpp:758
void SetAllowSleep(bool allowSleep)
Set allow sleep.
Definition: RigidBody2D.cpp:217
Vector3 forward_
Forward vector.
Definition: RibbonTrail.h:51
Sphere sphere_
Sphere.
Definition: OctreeQuery.h:111
void RemoveObjectAnimation()
Remove object animation. Same as calling SetObjectAnimation with a null pointer.
Definition: Animatable.cpp:413
static bool IsReplicatedID(unsigned id)
Return whether the specified id is a replicated id.
Definition: Scene.h:233
void SetObstacleAvoidanceType(unsigned obstacleAvoidanceType)
Set the agent's obstacle avoidance type.
Definition: CrowdAgent.cpp:436
bool IsFixedScreenSize() const
Return whether text has fixed screen size.
Definition: Text3D.h:155
float emissionTime_
Emission time.
Definition: ParticleEmitter2D.h:153
void HandleMouseVisibleChanged(StringHash eventType, VariantMap &eventData)
Handle operating system mouse cursor visibility change event.
Definition: Cursor.cpp:306
int GetTileSize() const
Return tile size.
Definition: NavigationMesh.h:198
asIScriptFunction * GetMethod(asIScriptObject *object, const String &declaration)
Return an object method by declaration.
Definition: ScriptFile.cpp:625
void SetCursorBlinkRate(float rate)
Set cursor blink rate. 0 disables blinking.
Definition: LineEdit.cpp:503
String name_
Package name.
Definition: Connection.h:78
void AddItem(UIElement *item)
Add item to the end of the list.
Definition: DropDownList.cpp:154
void UpdateInternalLayout()
Manually update layout on internal elements.
Definition: ListView.cpp:324
Button * okButton_
OK button.
Definition: FileSelector.h:163
void PreloadResources(File *file, bool isSceneFile)
Preload resources from a binary scene or object prefab file.
Definition: Scene.cpp:1291
Mutex queueMutex_
Worker queue mutex.
Definition: WorkQueue.h:138
virtual bool Load(Deserializer &source)
Load from binary data. Return true if successful.
Definition: Serializable.cpp:293
LuaFunction * GetScriptObjectFunction(const String &functionName) const
Return script object's funcition.
Definition: LuaScriptInstance.cpp:753
static void RegisterObject(Context *context)
Register object factory.
Definition: View3D.cpp:64
Image * GetHeightMap() const
Return heightmap image.
Definition: Terrain.cpp:518
void RemoveEventHandlersExcept(const Vector< String > &exceptionNames) override
Remove all scripted event handlers, except those listed.
Definition: LuaScriptInstance.cpp:361
UniquePtr< Spriter::SpriterData > spriterData_
Spriter data.
Definition: AnimationSet2D.h:112
SharedPtr< Connection > serverConnection_
Client's server connection.
Definition: Network.h:154
float timeToLiveMin_
Particle time to live minimum.
Definition: ParticleEffect.h:399
void SetCommandInterpreter(const String &interpreter)
Set the command interpreter.
Definition: Console.h:63
SharedPtr< UIElement > placeholder_
Selected item placeholder element.
Definition: DropDownList.h:108
Occlusion hierarchy depth value.
Definition: OcclusionBuffer.h:45
void SetGlobalVar(StringHash key, const Variant &value)
Set global variable with the respective key and value.
Definition: Object.cpp:416
bool sendFinishedEvent_
Whether finished event should be sent on playback stop.
Definition: SoundSource.h:146
Vector2 HalfSize() const
Return half-size.
Definition: Rect.h:206
unsigned glType_
Parameter OpenGL type.
Definition: ShaderVariation.h:69
void SetScene(Scene *newScene)
Assign scene. On the server, this will cause the client to load it.
Definition: Connection.cpp:178
void GetChildrenWithTag(PODVector< UIElement * > &dest, const String &tag, bool recursive=false) const
Return child elements with a specific tag either recursively or non-recursively.
Definition: UIElement.cpp:1706
bool IsShadowCasterVisible(Drawable *drawable, BoundingBox lightViewBox, Camera *shadowCamera, const Matrix3x4 &lightView, const Frustum &lightViewFrustum, const BoundingBox &lightViewFrustumBox)
Check visibility of one shadow caster.
Definition: View.cpp:2455
constexpr RandomAccessIterator()
Construct.
Definition: Iter.h:34
Three-dimensional vector.
Definition: Vector3.h:184
void FinishLoading(Deserializer *source)
Finish loading. Sets the scene filename and checksum.
Definition: Scene.cpp:1272
void SetRotationWeight(float weight)
Sets how much influence the target rotation should have on the solution. A value of 1 means to match ...
Definition: IKEffector.cpp:189
bool GetAutoClearForces() const
Return auto clear forces.
Definition: PhysicsWorld2D.cpp:700
~NavArea() override
Destruct.
int Refs() const
Return the object's reference count, or 0 if the pointer is null.
Definition: Ptr.h:211
void SetRotationStartVariance(float rotationStartVariance)
Set rotation start variance.
Definition: ParticleEffect2D.cpp:459
void SetUseHotSpot(bool useHotSpot)
Set whether to use custom-defined hot spot.
Definition: StaticSprite2D.cpp:177
unsigned textureTypes_[MAX_TEXTURE_UNITS]
OpenGL texture types in use.
Definition: OGLGraphicsImpl.h:140
int GetEffectStrokeThickness() const
Return effect stroke thickness.
Definition: Text3D.cpp:438
String ToLower() const
Return string in lowercase.
Definition: Str.cpp:543
Node()=default
Construct undefined.
void OnNodeSetEnabled(Node *point) override
Listener to manage Control Point enabling.
Definition: SplinePath.cpp:304
Component which tags geometry for inclusion in the navigation mesh. Optionally auto-includes geometry...
Definition: Navigable.h:31
void UpdateQueuedViewport(unsigned index)
Update a queued viewport for rendering.
Definition: Renderer.cpp:1475
Physics rigid body component.
Definition: RigidBody.h:52
void SetAnimationLodBias(float lodBias)
Set animation LOD bias.
Definition: ParticleEffect.cpp:475
void SetMaxFontTextureSize(int size)
Set maximum font face texture size. Must be a power of two. Default is 2048.
Definition: UI.cpp:664
void SetTimerPeriod(unsigned mSec)
Set the low-resolution timer period in milliseconds. 0 resets to the default period.
Definition: Timer.cpp:144
void Update(float timeStep) override
Perform UI element update.
Definition: LineEdit.cpp:101
bool hasOrthoCamera_
Whether was last rendered from an ortho camera.
Definition: BillboardSet.h:201
void HandleNeighborTerrainCreated(StringHash eventType, VariantMap &eventData)
Handle neighbor terrain geometry being created. Update the edge patch neighbors as necessary.
Definition: Terrain.cpp:1445
void ReleaseResource(StringHash type, const String &name, bool force=false)
Release a resource by name.
Definition: ResourceCache.cpp:246
unsigned collisionLayer_
Collision layer.
Definition: RigidBody.h:289
long long intervalMaxTime_
Maximum time during current profiler interval.
Definition: Profiler.h:160
BoundingBox boundingBox_
Local-space bounding box.
Definition: Drawable.h:331
void HandleInterpreterSelected(StringHash eventType, VariantMap &eventData)
Handle interpreter being selected on the drop down list.
Definition: Console.cpp:355
const dtCrowdAgent * GetDetourCrowdAgent() const
Get internal Detour crowd agent.
Definition: CrowdAgent.cpp:645
const String & GetPlaceholderText() const
Return place holder text.
Definition: DropDownList.cpp:223
bool operator==(const ScreenModeParams &rhs) const
Compare for equality with another parameter set.
Definition: Graphics.h:118
unsigned timerPeriod_
Low-resolution timer period.
Definition: Timer.h:127
MaterialQuality GetTextureQuality() const
Return texture quality level.
Definition: Renderer.h:283
void SetMaxOffset(const IntVector2 &offset)
Set offset of element's bottom right from the maximum anchor in pixels. No effect when anchor is not ...
Definition: UIElement.cpp:759
std::atomic< bool > completed_
Completed flag.
Definition: WorkQueue.h:61
IntRect(const int *data) noexcept
Construct from an int array.
Definition: Rect.h:303
float GetNextTimeStep() const
Get timestep of the next frame. Updated by ApplyFrameLimit().
Definition: Engine.h:79
static const JSONValue EMPTY
Empty JSON value.
Definition: JSONValue.h:274
btCompoundShape * GetCompoundShape() const
Return Bullet compound collision shape.
Definition: RigidBody.h:159
bool sortThisFrame_
Sorting flag. Triggers a vertex buffer rewrite for each view this billboard set is rendered from.
Definition: BillboardSet.h:199
ResourceRefList ReadResourceRefList()
Read a resource reference list.
Definition: Deserializer.cpp:292
const IntRect & GetBorder() const
Return border screen dimensions.
Definition: BorderImage.h:82
void UpdateOccluders(PODVector< Drawable * > &occluders, Camera *camera)
Query for occluders as seen from a camera.
Definition: View.cpp:2171
Vector2 sizeMax_
Particle size maximum.
Definition: ParticleEffect.h:397
float Distance(const Vector3 &point) const
Return distance of a point from the ray.
Definition: Ray.h:76
float distance_
Distance from camera.
Definition: Batch.h:130
RaycastVehicle(Urho3D::Context *context)
Construct.
Definition: RaycastVehicle.cpp:139
btDiscreteDynamicsWorld * GetWorld()
Return the Bullet physics world.
Definition: PhysicsWorld.h:263
bool Fade(const String &name, float targetWeight, float fadeTime)
Fade animation to target weight. Return true on success.
Definition: AnimationController.cpp:255
BorderImage * GetBackground() const
Return the background element.
Definition: Console.h:84
void StopAsyncLoading()
Stop asynchronous loading.
Definition: Scene.cpp:516
void Validate()
Validate parameters.
Definition: Light.cpp:72
List node.
Definition: List.h:36
bool IsCompiled() const
Return whether script compiled successfully.
Definition: ScriptFile.h:114
void Clone(void *dest) const override
Placement clone.
Definition: Variant.h:254
int GetDrawOrder() const
Return draw order.
Definition: TileMapLayer2D.h:73
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintWeld2D.cpp:45
void FreeNode(Node *node)
Free a node.
Definition: HashMap.h:758
TerrainPatch * GetWestPatch() const
Return west neighbor patch.
Definition: TerrainPatch.h:95
unsigned shadowMapFormat_
Shadow map depth texture format.
Definition: Graphics.h:773
float GetFramesPerSecond() const
Return current frames per second.
Definition: Timer.cpp:190
~AttributeAnimationInfo() override
Destruct.
unsigned readPosition_
Read buffer read cursor.
Definition: HttpRequest.h:103
Texture3D(Context *context)
Construct.
Definition: Texture3D.cpp:42
Color fogColor_
Fog color.
Definition: Zone.h:154
RenderSurface * GetRenderTarget() const
Return the rendertarget. 0 if using the backbuffer.
Definition: View.h:151
BiasParameters shadowBias_
Shadow depth bias parameters.
Definition: Light.h:357
TileMapLayer2D * GetLayer(unsigned index) const
Return tile map layer at index.
Definition: TileMap2D.cpp:159
bool IsEof() const override
Return whether all response data has been read.
Definition: HttpRequest.cpp:275
XMLFile xmlFile_
XML file.
Definition: ShaderPrecache.h:56
VectorBuffer attrBuffer_
Attribute buffer.
Definition: AnimatedModel.h:231
float distance_
Distance to camera.
Definition: Drawable2D.h:56
void SetLinearFactor(const Vector3 &factor)
Set linear degrees of freedom. Use 1 to enable an axis or 0 to disable. Default is all axes enabled (...
Definition: RigidBody.cpp:309
~ObjectAnimation() override
Destruct.
unsigned GetNumLevels() const
Return subdivision levels.
Definition: Octree.h:192
TextureFilterMode textureFilterMode_
Texture filtering mode.
Definition: Renderer.h:540
void ProcessHover(const IntVector2 &windowCursorPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
Handle button or touch hover.
Definition: UI.cpp:1346
ShadowQuality GetShadowQuality() const
Return shadow quality.
Definition: Renderer.h:292
bool IsFadingIn(const String &name) const
Return whether an animation is fading in.
Definition: AnimationController.cpp:449
void RemoveKnot(unsigned index)
Remove the knot at the specific index.
Definition: Spline.h:105
void SetOccluder(bool enable)
Set occlusion flag for patches. Occlusion uses the coarsest LOD by default.
Definition: Terrain.cpp:488
void SetShapeTexture(Texture *texture)
Set spotlight attenuation texture.
Definition: Light.cpp:410
unsigned alphaPassIndex_
Index of the alpha pass.
Definition: View.h:425
void * handle_
Mutex handle.
Definition: Mutex.h:52
float GetAspectRatio() const
Return aspect ratio.
Definition: Camera.h:122
2D weld constraint component.
Definition: ConstraintWeld2D.h:31
VariantMap vars_
User variables.
Definition: UIElement.h:688
SharedArrayPtr< unsigned char > morphData_
Morphed vertices. Stored packed as <index, data> pairs.
Definition: Model.h:50
bool IsNonFocusedMouseWheel() const
Return whether mouse wheel can control also a non-focused element.
Definition: UI.h:191
HashSet< StringHash > pausedSoundTypes_
Paused sound types.
Definition: Audio.h:147
@ JSONNT_INT
Integer.
Definition: JSONValue.h:55
Text UI element.
Definition: Text.h:75
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Drawable2D.cpp:67
void ToggleExpand(unsigned index, bool recursive=false)
Toggle item's expanded flag at index. Only has effect in hierarchy mode.
Definition: ListView.cpp:815
~RenderPath() override
Destruct.
void SetSize(unsigned size)
Set new size.
Definition: HashBase.h:143
Vector2 invTextureSize_
Inverse texture size.
Definition: UIBatch.h:85
OcclusionBuffer(Context *context)
Construct.
Definition: OcclusionBuffer.cpp:54
Vector< Bone > & GetModifiableBones()
Return modifiable bones.
Definition: Skeleton.h:111
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Sprite2D.cpp:81
PacketType GetPacketType(bool reliable, bool inOrder)
Get packet type based on the message parameters.
Definition: Connection.cpp:97
String name_
Name.
Definition: FileSelector.h:45
const Vector2 & GetPosition() const
Return floating point position.
Definition: Sprite.h:83
String GetTemporaryDir() const
Return path of temporary directory. Path always ends with a forward slash.
Definition: FileSystem.cpp:1067
void SetSkeleton(const Skeleton &skeleton)
Set skeleton.
Definition: Model.cpp:602
String & operator+=(const String &rhs)
Add-assign a string.
Definition: Str.h:200
FontFace * GetFaceBitmap(float pointSize)
Return bitmap font face. Called internally. Return null on error.
Definition: Font.cpp:234
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Light.cpp:221
bool movable_
Movable flag.
Definition: Window.h:141
int Top() const
Return top coordinate.
Definition: Rect.h:452
FontFace * GetFaceFreeType(float pointSize)
Return font face using FreeType. Called internally. Return null on error.
Definition: Font.cpp:223
IntVector2 numVertices_
Terrain size in vertices.
Definition: Terrain.h:275
void SetFinishBackgroundResourcesMs(int ms)
Set how many milliseconds maximum per frame to spend on finishing background loaded resources.
Definition: ResourceCache.h:132
unsigned lastUpdateFrameNumber_
Rendering framenumber on which was last updated.
Definition: ParticleEmitter.h:144
Vector2 textureUV_
Hit texture position.
Definition: OctreeQuery.h:211
Vector2 NormalizedOrDefault(const Vector2 &defaultValue=Vector2::ZERO, float eps=M_LARGE_EPSILON) const
Return normalized to unit length or zero if length is too small.
Definition: Vector2.h:347
int GetHeight() const
Return the current height.
Definition: AreaAllocator.h:50
AnimationKeyFrame * GetKeyFrame(unsigned index)
Return keyframe at index, or null if not found.
Definition: Animation.cpp:87
const float * Data() const
Return float data.
Definition: Vector3.h:457
Frustum frustum_
Frustum.
Definition: OctreeQuery.h:153
~HashSet()
Destruct.
Definition: HashSet.h:207
WindowDragMode GetDragMode(const IntVector2 &position) const
Identify drag mode (move/resize).
Definition: Window.cpp:320
bool WriteUShort(unsigned short value)
Write a 16-bit unsigned integer.
Definition: Serializer.cpp:66
bool IsStereo() const
Return whether data is stereo.
Definition: Sound.h:103
SharedPtr< ListView > listView_
Listview element.
Definition: DropDownList.h:106
Vector3 initialPosition_
Reset position.
Definition: Skeleton.h:66
~ParticleEffect() override
Destruct.
Infinite straight line in three-dimensional space.
Definition: Ray.h:37
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintFriction2D.cpp:99
UniquePtr< btRigidBody > body_
Bullet rigid body.
Definition: RigidBody.h:269
unsigned char GetLayer(const String &name) const
Return animation blending layer.
Definition: AnimationController.cpp:483
Viewport * GetViewport(unsigned index) const
Return viewport by index.
Definition: RenderSurface.cpp:107
~Allocator()
Destruct.
Definition: Allocator.h:83
void Reset()
Reset the timer.
Definition: Timer.cpp:235
std::function< void(StringHash, VariantMap &)> function_
Class-specific pointer to handler function.
Definition: Object.h:355
void ToggleSelection(unsigned index)
Toggle selection of an item.
Definition: ListView.cpp:643
void setSpatialInfo(const SpatialInfo &spatialInfo)
Set root spatial info.
Definition: SpriterInstance2D.cpp:115
Viewport * GetViewportForScene(Scene *scene, unsigned index) const
Return nth backbuffer viewport associated to a scene. Index 0 returns the first.
Definition: Renderer.cpp:542
float scaleY_
Y scaling for viewport transform.
Definition: OcclusionBuffer.h:217
WeakPtr< TerrainPatch > south_
South neighbor patch.
Definition: TerrainPatch.h:130
float GetScale() const
Return current UI scale.
Definition: UI.h:221
unsigned GetNumItems() const
Return number of items.
Definition: DropDownList.cpp:198
static unsigned GetFloat16Format()
Return the API-specific single channel 16-bit float texture format.
Definition: OGLGraphics.cpp:2643
Vector4 clipPlane_
Current custom clip plane in post-projection space.
Definition: Graphics.h:841
void SetMaxShadowMaps(int shadowMaps)
Set maximum number of shadow maps created for one resolution. Only has effect if reuse of shadow maps...
Definition: Renderer.cpp:446
void Toggle(unsigned mode)
Toggle elements.
Definition: DebugHud.cpp:260
void RemoveAllAnimationStates()
Remove all animations.
Definition: AnimatedModel.cpp:530
void RemoveEventSender(Object *sender)
Remove event handlers related to a specific sender.
Definition: Object.cpp:515
void BlitFramebuffer(Texture *source, RenderSurface *destination, bool depthWrite)
Blit the viewport from one surface to another.
Definition: View.cpp:2100
void * MapBuffer(unsigned start, unsigned count, bool discard)
Map the GPU buffer into CPU memory. Not used on OpenGL.
Definition: OGLVertexBuffer.cpp:268
void SetFinishColor(const Color &finishColor)
Set finish color.
Definition: ParticleEffect2D.cpp:374
static void RegisterObject(Context *context)
Register object factory.
Definition: Node.cpp:77
SharedPtr< View > view_
Internal rendering structure.
Definition: Viewport.h:111
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLTextureCube.cpp:60
String connectionString_
The connection string for SQLite3 is using the URI format described in https://www....
Definition: ODBCConnection.h:63
float GetAlpha() const
Return alpha.
Definition: StaticSprite2D.h:101
virtual void UpdateGeometry(const FrameInfo &frame)
Prepare geometry for rendering.
Definition: Drawable.h:135
void Unlock()
Unlock the buffer and apply changes to the GPU buffer.
Definition: OGLIndexBuffer.cpp:204
@ JSON_OBJECT
JSON object type.
Definition: JSONValue.h:46
SharedPtr< VertexBuffer > instancingBuffer_
Instance stream vertex buffer.
Definition: Renderer.h:488
void Update(float timeStep) override
Perform UI element update.
Definition: Slider.cpp:74
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLTexture2D.cpp:53
static void RegisterObject(Context *context)
Register object factory.
Definition: ParticleEmitter.cpp:63
void SetKeyFrame(unsigned index, const AnimationKeyFrame &keyFrame)
Assign keyframe at index.
Definition: Animation.cpp:52
Vector< String > GetAttributeNames() const
Return names of all attributes.
Definition: XMLElement.cpp:736
float GetMinVelocity() const
Return particle minimum velocity.
Definition: ParticleEffect.h:293
void MarkNodeDirty()
Mark node transform dirty.
Definition: Zone.h:133
int GetMinFps() const
Return the minimum frames per second.
Definition: Engine.h:82
XMLFile * GetFile() const
Return XML file.
Definition: XMLElement.cpp:990
void SetMultiselect(bool enable)
Enable multiselect.
Definition: ListView.cpp:707
int loadMode_
Load mode.
Definition: FontFaceFreeType.h:63
bool threadedOcclusion_
Threaded occlusion rendering flag.
Definition: Renderer.h:598
HashMap< StringHash, SharedPtr< EventReceiverGroup > > eventReceivers_
Event receivers for non-specific events.
Definition: Context.h:234
void LoadInfo(const XMLElement &element)
Load layer info.
Definition: TmxFile2D.cpp:69
void SetProfilerInterval(float interval)
Set profiler accumulation interval in seconds.
Definition: DebugHud.cpp:250
Texture2D * GetDepthTexture() const
Return depth stencil texture.
Definition: View3D.cpp:146
float updateInterval_
Update time interval.
Definition: Network.h:170
float HitDistance(const Plane &plane) const
Return hit distance to a plane, or infinity if no hit.
Definition: Ray.cpp:56
@ OT_INVALID
Invalid.
Definition: TileMapDefs2D.h:101
~NetworkPriority() override
Destruct.
float activeTime_
Active period.
Definition: ParticleEffect.h:387
ConstraintWheel2D(Context *context)
Construct.
Definition: ConstraintWheel2D.cpp:37
bool drawDebug_
Draw debug geometry flag. Copied from the viewport.
Definition: View.h:384
unsigned GetLevel() const
Return subdivision level.
Definition: Octree.h:82
Variant(const StringHash &value)
Construct from a string hash (convert to integer).
Definition: Variant.h:355
Iterator End()
Return iterator to the end.
Definition: HashMap.h:609
IntRect shadowViewport_
Shadow map viewport.
Definition: Batch.h:282
void Invoke(VariantMap &eventData) override
Invoke event handler function.
Definition: Object.h:342
long long ReadInt64()
Read a 64-bit integer.
Definition: Deserializer.cpp:63
void SetBlendMode(BlendMode blendMode)
Set blend mode.
Definition: StaticSprite2D.cpp:118
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Texture3D.cpp:141
void Release() override
Release shader program.
Definition: OGLShaderProgram.cpp:88
void ReAddBodyToWorld()
Readd rigid body to the physics world to clean up internal state like stale contacts.
Definition: RigidBody.cpp:582
Octant * parent_
Parent octant.
Definition: Octree.h:152
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintGear2D.cpp:44
EventReceiverGroup()
Construct.
Definition: Context.h:37
Node * GetNode() const
Return scene node.
Definition: Component.h:87
void GetFrustumSize(Vector3 &near, Vector3 &far) const
Return frustum near and far sizes.
Definition: Camera.cpp:465
bool focus_
Focus flag.
Definition: Light.h:138
bool SetLastModifiedTime(const String &fileName, unsigned newTime)
Set a file's last modified time as seconds since 1.1.1970. Return true on success.
Definition: FileSystem.cpp:767
WeakPtr< TerrainPatch > east_
East neighbor patch.
Definition: TerrainPatch.h:134
void MarkTerrainDirty()
Mark terrain dirty.
Definition: Terrain.h:242
HighlightMode GetHighlightMode() const
Return highlight mode.
Definition: ListView.h:141
void SetCustomShape(ShapeType shapeType, CustomGeometry *custom, const Vector3 &scale, const Vector3 &position, const Quaternion &rotation)
Set as specified shape type using CustomGeometry.
Definition: CollisionShape.cpp:1164
Variant GetPoint(float f) const
Return the T of the point of the spline at f from 0.f - 1.f.
Definition: Spline.cpp:56
HashMap< unsigned long long, FrameBufferObject > frameBuffers_
Map for FBO's per resolution and format.
Definition: OGLGraphicsImpl.h:138
const String & GetProperty(const String &name) const
Return property value (use for script).
Definition: TmxFile2D.cpp:62
unsigned GetFreeNodeID(CreateMode mode)
Get free node ID, either non-local or local.
Definition: Scene.cpp:842
Template wrapper class for using Serializer / Deserializer or their subclasses through SDL's RWOps st...
Definition: RWOpsWrapper.h:33
bool sRGB_
sRGB sampling/writing mode flag.
Definition: RenderPath.h:94
Profiler(Context *context)
Construct.
Definition: Profiler.cpp:34
PODVector< unsigned char > buffer_
Dynamic data buffer.
Definition: VectorBuffer.h:72
bool SetSize(unsigned size)
Set size and create GPU-side buffer. Return true on success.
Definition: OGLConstantBuffer.cpp:59
float GetDistance(const Vector3 &worldPos) const
Return distance to position. In orthographic mode uses only Z coordinate.
Definition: Camera.cpp:487
SharedPtr< SoundStream > GetDecoderStream() const
Return a new instance of a decoder sound stream. Used by compressed sounds.
Definition: Sound.cpp:313
String fileName_
File name.
Definition: File.h:121
ShaderVariation * GetVertexShader() const
Return current vertex shader.
Definition: Graphics.h:470
KeyValue()
Construct with default key.
Definition: HashMap.h:48
bool SetMode(int width, int height, bool fullscreen, bool borderless, bool resizable, bool highDPI, bool vsync, bool tripleBuffer, int multiSample, int monitor, int refreshRate)
Set default window modes. Deprecated. Return true if successful.
Definition: Graphics.cpp:147
void RemoveInstanceNode(Node *node)
Remove an instance scene node.
Definition: StaticModelGroup.cpp:288
unsigned GetPosition() const
Return current position.
Definition: Deserializer.h:57
static unsigned GetLinearDepthFormat()
Return the API-specific linear depth texture format.
Definition: OGLGraphics.cpp:2661
ResourceRef GetParticleEffectAttr() const
Return particle model attr.
Definition: ParticleEmitter2D.cpp:156
btCollisionShape * GetCollisionShape() const
Return Bullet collision shape.
Definition: CollisionShape.h:212
bool SetSize(unsigned layers, int width, int height, unsigned format, TextureUsage usage=TEXTURE_STATIC)
Set layers, size, format and usage. Set layers to zero to leave them unchanged. Return true if succes...
Definition: Texture2DArray.cpp:153
OcclusionBuffer * GetOcclusionBuffer() const
Return the last used software occlusion buffer.
Definition: View.h:175
void SetTextureUnitMappings()
Initialize texture unit mappings.
Definition: OGLGraphics.cpp:3229
PackageUpload()
Construct with defaults.
Definition: Connection.cpp:65
Text * okButtonText_
OK button text.
Definition: FileSelector.h:165
const Vector< Vector< SharedPtr< Geometry > > > & GetGeometries() const
Return geometry pointers.
Definition: Model.h:170
Vector2 anchorMin_
Anchor minimum position.
Definition: UIElement.h:791
static const IntVector3 RIGHT_FORWARD_UP
(0, 2, 1) coordinate system.
Definition: RaycastVehicle.h:174
bool GetNextChange(String &dest)
Return a file change (true if was found, false if not).
Definition: FileWatcher.cpp:334
float GetMaxZ() const
Return the maximum view-space depth.
Definition: Drawable.h:287
MaterialQuality GetMaterialQuality() const
Return material quality level.
Definition: Renderer.h:286
void SetSRGB(bool enable)
Set sRGB sampling and writing mode.
Definition: OGLTexture.cpp:69
Per-thread occlusion buffer data.
Definition: OcclusionBuffer.h:54
void SetRenderTargets(RenderPathCommand &command)
Set rendertargets for current render command.
Definition: View.cpp:1729
bool Execute(const String &line)
Compile and execute a line of script in immediate mode.
Definition: Script.cpp:178
void SetSimulatedLatency(int ms)
Set simulated latency in milliseconds. This adds a fixed delay before sending each packet.
Definition: Network.cpp:580
void HandleFileDoubleClicked(StringHash eventType, VariantMap &eventData)
Handle file doubleclicked from the list (enter directory / OK the file selection).
Definition: FileSelector.cpp:416
float GetRollingFriction() const
Return rolling friction coefficient.
Definition: RigidBody.cpp:673
void ResetWheels()
Sets node initial positions.
Definition: RaycastVehicle.cpp:708
void AddFace(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2)
Add a triangle face.
Definition: Polyhedron.cpp:71
void SetAreaID(unsigned newAreaID)
Sets the assigned area Id for the connection.
Definition: OffMeshConnection.cpp:107
bool WriteStringHash(const StringHash &value)
Write a 32-bit StringHash.
Definition: Serializer.cpp:201
ConstIterator Begin() const
Return const iterator to the beginning.
Definition: Str.h:382
Stored log message from another thread.
Definition: Log.h:51
void SetMaxAgentRadius(float maxAgentRadius)
Set the maximum radius of any agent.
Definition: CrowdManager.cpp:246
void Clear()
Remove all buffered audio data.
Definition: BufferedSoundStream.cpp:102
BoundingBox boundingBox_
Whole navigation mesh bounding box.
Definition: NavigationMesh.h:344
float GetVertexDistance() const
Get distance between points.
Definition: RibbonTrail.h:131
Three-dimensional vector with integer values.
Definition: Vector3.h:32
void SetOwner(Terrain *terrain)
Set owner terrain.
Definition: TerrainPatch.cpp:214
bool IsDeviceLost() const
Return whether graphics context is lost and can not render or load GPU resources.
Definition: OGLGraphics.cpp:2037
bool WriteMatrix3x4(const Matrix3x4 &value)
Write a Matrix3x4.
Definition: Serializer.cpp:159
unsigned lastSize_
Last size of the shared pool.
Definition: WorkQueue.h:150
float GetFontSubpixelThreshold() const
Get the font subpixel threshold. Below this size, if the hint level is LIGHT or NONE,...
Definition: UI.h:209
void AddDrawable(Drawable *drawable)
Add a drawable object to this octant.
Definition: Octree.h:57
void SetViewport(unsigned index, Viewport *viewport)
Set viewport.
Definition: RenderSurface.cpp:47
void SetEmitterSize(const Vector3 &size)
Set emitter size.
Definition: ParticleEffect.cpp:485
char * name_
Block name.
Definition: Profiler.h:138
void SetDrawNavAreas(bool enable)
Draw debug geometry for NavArea components.
Definition: NavigationMesh.h:272
Rect(const Vector2 &min, const Vector2 &max) noexcept
Construct from minimum and maximum vectors.
Definition: Rect.h:42
unsigned Write(const void *data, unsigned size) override
Write bytes to the pipe. Return number of bytes actually written.
Definition: NamedPipe.cpp:294
Pair(const T &first, const U &second)
Construct with values.
Definition: Pair.h:38
SharedPtr< Texture > texture_
Texture.
Definition: Sprite.h:120
void CalculateFixedScreenSize(const FrameInfo &frame)
Recalculate camera facing and fixed screen size.
Definition: Text3D.cpp:741
HeightfieldData(Terrain *terrain, unsigned lodLevel)
Construct from a terrain.
Definition: CollisionShape.cpp:317
int GetPositionAttr() const
Return sound position attribute.
Definition: SoundSource.cpp:503
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: StaticModel.cpp:56
bool IsEmpty() const
Return whether the batch group is empty.
Definition: Batch.h:245
IntVector2 WorldToScreenPoint(const Vector3 &worldPos) const
Convert a world space point to normalized screen coordinates.
Definition: Viewport.cpp:165
Quaternion(const Quaternion &quat) noexcept
Copy-construct from another quaternion.
Definition: Quaternion.h:53
JSON document resource.
Definition: JSONFile.h:32
Variant defaultValue_
Default value for network replication.
Definition: Attribute.h:110
unsigned GetNumVertices() const
Retur number of vertices in the decals.
Definition: DecalSet.h:152
PODVector< DecalVertex > vertices_
Decal vertices.
Definition: DecalSet.h:97
void SetAmbientGradient(bool enable)
Set ambient gradient mode. In gradient mode ambient color is interpolated from neighbor zones.
Definition: Zone.cpp:172
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: BillboardSet.h:187
ShaderParameter()=default
Construct with defaults.
VertexLightVSVariation
Per-vertex light vertex shader variations.
Definition: Renderer.h:78
Material's shader parameter definition.
Definition: Material.h:47
void ConstructBatch(UIBatch &pageBatch, const PODVector< GlyphLocation > &pageGlyphLocation, float dx=0, float dy=0, Color *color=nullptr, float depthBias=0.0f)
Construct batch.
Definition: Text.cpp:789
const IntRect & GetViewRect() const
Return view rectangle.
Definition: View.h:157
bool IsShadowed() const
Return whether CPU memory shadowing is enabled.
Definition: IndexBuffer.h:65
CustomVariantValue(const std::type_info &typeInfo)
Construct from type info.
Definition: Variant.h:175
Vector3 FindNearestPoint(const Vector3 &point, int queryFilterType, dtPolyRef *nearestRef=nullptr)
Find the nearest point on the navigation mesh to a given point using the crowd initialized query exte...
Definition: CrowdManager.cpp:390
const String & GetVertexShader() const
Return vertex shader name.
Definition: Technique.h:114
String name_
Name.
Definition: Node.h:65
Rectangular area allocator.
Definition: AreaAllocator.h:31
bool IsEnabledSelf() const
Return the node's last own enabled state. May be different than the value returned by IsEnabled when ...
Definition: Node.h:371
Quaternion otherRotation_
Constraint other body axis.
Definition: Constraint.h:187
void SetIndirectionTextureData()
Create point light shadow indirection texture data.
Definition: Renderer.cpp:1834
unsigned occlusionLodLevel_
Occlusion LOD level.
Definition: StaticModel.h:123
void ReleaseRef()
Release the object reference and delete it if necessary.
Definition: Ptr.h:233
void SetVerticesAttr(const PODVector< unsigned char > &value)
Set vertices attribute.
Definition: CollisionPolygon2D.cpp:82
int WeakRefs() const
Return the object's weak reference count, or 0 if the pointer is null.
Definition: Ptr.h:214
Sprite sheet.
Definition: SpriteSheet2D.h:37
unsigned size_
Stream size.
Definition: Deserializer.h:149
void UpdateMasterGain()
Update the effective master gain. Called internally and by Audio when the master gain changes.
Definition: SoundSource.cpp:460
~XMLElement()
Destruct.
Definition: XMLElement.cpp:74
constexpr RandomAccessConstIterator(const RandomAccessIterator< T > &rhs)
Construct from a non-const iterator.
Definition: Iter.h:142
PODVector< Drawable * > threadedDrawableUpdates_
Drawable objects that were inserted during threaded update phase.
Definition: Octree.h:210
String commandInterpreter_
Last used command interpreter.
Definition: Console.h:157
UniquePtr< Mutex > mutex_
Mutex.
Definition: StringHashRegister.h:61
bool BeginLoadFromPListFile(Deserializer &source)
Begin load from PList file.
Definition: SpriteSheet2D.cpp:125
~FontFaceFreeType() override
Destruct.
Definition: FontFaceFreeType.cpp:85
FillMode GetFillMode() const
Return polygon fill mode.
Definition: Graphics.h:525
void CopySelectedItemsToClipboard() const
Copy selected items to system clipboard. Currently only applicable to Text items.
Definition: ListView.cpp:911
~CollisionChain2D() override
Destruct.
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Drawable2D.cpp:107
bool IsInstanceOf() const
Check current instance is type of specified class.
Definition: Object.h:107
float Distance(const Vector3 &point) const
Return distance of a point to the surface, or 0 if inside.
Definition: Sphere.h:195
Vector< WeakPtr< CollisionShape2D > > collisionShapes_
Collision shapes.
Definition: RigidBody2D.h:181
T * operator->() const
Point to the array.
Definition: ArrayPtr.h:99
String shaderCacheDir_
Cache directory for Direct3D binary shaders.
Definition: Graphics.h:851
void HandleScriptEvent(StringHash eventType, VariantMap &eventData)
Handle an event in script.
Definition: ScriptFile.cpp:1055
unsigned GetLodLevel() const
Return current LOD level.
Definition: TerrainPatch.h:107
int GetMaxFontTextureSize() const
Return font texture maximum size.
Definition: UI.h:188
List< StoredLogMessage > threadMessages_
Log messages from other threads.
Definition: Log.h:118
bool RemoveSwap(const T &value)
Erase an element by value by swapping with the last element. Return true if was found and erased.
Definition: Vector.h:1014
void HandleFileListKey(StringHash eventType, VariantMap &eventData)
Handle file list key pressed.
Definition: FileSelector.cpp:425
Quaternion rotation_
Offset rotation.
Definition: CollisionShape.h:304
bool otherBodyNodeIDDirty_
Other body node ID dirty flag.
Definition: Constraint2D.h:106
const Color & GetEffectColor() const
Return effect color.
Definition: Text.h:169
int GetTextureAnisotropy() const
Return default texture max. anisotropy level.
Definition: Renderer.h:277
Slider(Context *context)
Construct.
Definition: Slider.cpp:45
void BanAddress(const String &address)
Ban specific IP addresses.
Definition: Network.cpp:649
@ CONSTRAINTS
Definition: IKSolver.h:157
float GetShadowSoftness() const
Return shadow softness.
Definition: Renderer.h:295
bool GetDither() const
Return whether rendering output is dithered.
Definition: OGLGraphics.cpp:2032
Vector< Pair< int, String > > pendingRows_
Pending log message rows.
Definition: Console.h:162
void Update(float timeStep) override
Update sound source.
Definition: SoundSource3D.cpp:98
static void RegisterObject(Context *context)
Register object factory.
Definition: XMLFile.cpp:74
unsigned b_
Blue channel mask. If zero, blue channel is set to 0.
Definition: Color.h:44
UIElement * fileNameLayout_
Filename and filter layout.
Definition: FileSelector.h:173
~OggVorbisSoundStream() override
Destruct.
Definition: OggVorbisSoundStream.cpp:50
Text * GetTitleText() const
Return window title text element.
Definition: FileSelector.h:87
int GetUpdateFps() const
Return network update FPS.
Definition: Network.h:108
CompressedFormat format_
Compression format.
Definition: Image.h:63
const Vector2 & GetOwnerBodyAnchor() const
Return owner body anchor.
Definition: ConstraintRope2D.h:51
void UpdateOctreeSize()
Update octree size.
Definition: Octree.h:205
LuaScript(Context *context)
Construct.
Definition: LuaScript.cpp:83
PODVector< Drawable * > shadowCasters_
Shadow casters.
Definition: View.h:62
BlendMode blendMode_
Blend mode flag.
Definition: Sprite.h:124
bool frustumDirty_
Frustum dirty flag.
Definition: Camera.h:240
float startScale_
Scale for start of trails.
Definition: RibbonTrail.h:227
T first_
First value.
Definition: Pair.h:74
void OnAttributeAnimationRemoved() override
Handle attribute animation removed.
Definition: UIElement.cpp:1884
static unsigned DecodeUTF8(const char *&src)
Decode Unicode character from UTF8. Pointer will be incremented.
Definition: Str.cpp:943
static Vector3 posAdjust
Position adjustment vector for pixel-perfect rendering. Initialized by UI.
Definition: UIBatch.h:100
PODVector< Particle > particles_
Particles.
Definition: ParticleEmitter.h:136
static bool supported
High-resolution timer support flag.
Definition: Timer.h:72
bool etc2TextureSupport_
ETC2 format support flag.
Definition: Graphics.h:749
void SetParticleEffectAttr(const ResourceRef &value)
Set particle model attr.
Definition: ParticleEmitter2D.cpp:150
const String & GetTypeName() const override
Return type name of the stored component.
Definition: UnknownComponent.h:44
const Quaternion & GetTargetRotation() const
Gets the current target rotation in world space.
Definition: IKEffector.cpp:126
bool useScreenKeyboard_
Flag for showing the on-screen keyboard on focusing a LineEdit.
Definition: UI.h:401
unsigned Read(void *dest, unsigned size) override
Read bytes from the file. Return number of bytes actually read.
Definition: File.cpp:158
const Vector3 & GetConstantForce() const
Return constant force acting on particles.
Definition: ParticleEffect.h:263
void(* workFunction_)(const WorkItem *, unsigned)
Work function. Called with the work item and thread index (0 = main thread) as parameters.
Definition: WorkQueue.h:49
HashMap< int, PODVector< Light * > > shadowMapAllocations_
Shadow map allocations by resolution.
Definition: Renderer.h:508
Hash map node iterator.
Definition: HashMap.h:107
SharedPtr< UIElement > rootElement_
UI root element.
Definition: UI.h:353
SimpleNavBuildData()
Constructor.
Definition: NavBuildData.cpp:50
void SetQuiet(bool quiet)
Set quiet mode ie. only print error entries to standard error stream (which is normally redirected to...
Definition: Log.cpp:133
void SetLineAntiAlias(bool enable)
Set line antialiasing on/off.
Definition: OGLGraphics.cpp:1854
float GetMorphWeight(unsigned index) const
Return vertex morph weight by index.
Definition: AnimatedModel.cpp:630
PODVector< IntVector3 > GetResolutions(int monitor) const
Return supported fullscreen resolutions (third component is refreshRate). Will be empty if listing th...
Definition: Graphics.cpp:245
void SetLinearDamping(float linearDamping)
Set linear damping.
Definition: RigidBody2D.cpp:187
SharedPtr< Resource > GetTempResource(StringHash type, const String &name, bool sendEventOnFailure=true)
Load a resource without storing it in the resource cache. Return null if not found or if fails....
Definition: ResourceCache.cpp:658
void AddPolygon(const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, const Vector3 &v4, const Color &color, bool depthTest=true)
Add a solid quadrangular polygon.
Definition: DebugRenderer.cpp:119
Bounding box octree query.
Definition: OctreeQuery.h:115
float edgeOffset_
Offset to fix texture edge bleeding.
Definition: Sprite2D.h:109
unsigned color_
Color.
Definition: Drawable2D.h:42
2D pulley constraint component.
Definition: ConstraintPulley2D.h:31
SharedPtr< Node > cameraNode_
Camera scene node.
Definition: View3D.h:93
bool GetDeferredSupport() const
Return whether deferred rendering is supported.
Definition: Graphics.h:423
void SetGroupIndex(int groupIndex)
Set filter group index.
Definition: CollisionShape2D.cpp:120
HashMap< WeakPtr< UIElement >, DragData * >::Iterator DragElementErase(HashMap< WeakPtr< UIElement >, DragData * >::Iterator i)
Remove drag data and return next iterator.
Definition: UI.cpp:2091
Vector3 cachedWorldScale_
Cached world scale for determining if the collision shape needs update.
Definition: CollisionShape.h:308
const int * Data() const
Return integer data.
Definition: Rect.h:437
Sprite2D * GetSprite() const
Return sprite.
Definition: TileMapDefs2D.cpp:168
~ShaderVariation() override
Destruct.
Definition: ShaderVariation.cpp:65
void SetTime(float time)
Set time position. Does not fire animation triggers.
Definition: AnimationState.cpp:191
Vector2 GetRandomSize() const
Return random size.
Definition: ParticleEffect.cpp:796
int GetHeight() const
Return height.
Definition: Image.h:162
void AddPolyhedron(const Polyhedron &poly, const Color &color, bool depthTest=true)
Add a polyhedron.
Definition: DebugRenderer.cpp:245
Vector4 ClipEdge(const Vector4 &v0, const Vector4 &v1, float d0, float d1) const
Clip an edge.
Definition: OcclusionBuffer.cpp:563
bool GetEnableMotor() const
Return enable motor.
Definition: ConstraintRevolute2D.h:71
bool ownScene_
Own scene.
Definition: View3D.h:95
CustomVariantValueImpl< T > ClassName
This class name.
Definition: Variant.h:229
void CheckTextureBudget(StringHash type)
Check whether texture memory budget has been exceeded. Free unused materials in that case to release ...
Definition: Texture.cpp:273
bool dirty_
Dirty flag.
Definition: ConstantBuffer.h:70
void Release()
Release surface.
Definition: OGLRenderSurface.cpp:112
const TmxTileLayer2D * tileLayer_
Tile layer.
Definition: TileMapLayer2D.h:117
void SetUpperTranslation(float upperTranslation)
Set upper translation.
Definition: ConstraintPrismatic2D.cpp:114
bool GetDrawCenterOfMass() const
Return draw center of mass.
Definition: PhysicsWorld2D.h:177
void SetWorldRotation(const Quaternion &rotation)
Set rotation in world space.
Definition: Node.cpp:518
float maxSideSlipSpeed_
Side slip speed threshold.
Definition: RaycastVehicle.h:204
HashMap< String, TextureUnit > textureUnits_
Texture unit mappings.
Definition: Graphics.h:791
RefCount * RefCountPtr() const
Return pointer to RefCount structure.
Definition: ArrayPtr.h:388
Matrix4 ReadMatrix4()
Read a Matrix4.
Definition: Deserializer.cpp:226
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: DecalSet.cpp:597
const Color & GetStartColor() const
Return start color.
Definition: ParticleEffect2D.h:176
BatchGroup()
Construct with defaults.
Definition: Batch.h:137
void CleanupConnection(Connection *connection)
Clean up all references to a network connection that is about to be removed.
Definition: Node.cpp:1773
ConstIterator()=default
Construct.
virtual void OnSetAttribute(const AttributeInfo &attr, const Variant &src)
Handle attribute write access. Default implementation writes to the variable at offset,...
Definition: Serializable.cpp:65
unsigned vertexStart_
First used vertex.
Definition: Geometry.h:127
void SetMassCenter(const Vector2 ¢er)
Set mass center.
Definition: RigidBody2D.cpp:155
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintMotor2D.cpp:134
Vector< SharedPtr< ShaderVariation > > pixelShaders_
Pixel shaders.
Definition: Technique.h:180
static unsigned GetAlphaFormat()
Return the API-specific alpha texture format.
Definition: OGLGraphics.cpp:2549
bool GetWordwrap() const
Return wordwrap mode.
Definition: Text.h:145
JSONValue(int value)
Construct with a integer.
Definition: JSONValue.h:89
Container of resources with specific type.
Definition: ResourceCache.h:44
bool IsOrthographic() const
Return orthographic flag.
Definition: Camera.h:140
PODVector< float > lastTimeSteps_
Previous timesteps for smoothing.
Definition: Engine.h:132
float edgeOffset_
Texture edge offset.
Definition: TmxFile2D.h:228
One particle in the particle system.
Definition: ParticleEmitter.h:33
unsigned Seek(unsigned position) override
Set position from the beginning of the file.
Definition: File.cpp:273
StringHash vsExtraDefinesHash_
Hash for vertex shader extra defines.
Definition: Batch.h:271
void SetDefaultTextureAnisotropy(unsigned level)
Set default texture anisotropy level. Called by Renderer before rendering.
Definition: OGLGraphics.cpp:1590
void EnableMassUpdate()
Re-enable mass update and recalculate the mass/inertia by calling UpdateMass(). Call when collision s...
Definition: RigidBody.cpp:593
bool sRGBSupport_
sRGB conversion on read support flag.
Definition: Graphics.h:757
BatchQueue litBaseBatches_
Lit geometry draw calls, base (replace blend mode).
Definition: Batch.h:301
SharedPtr< RenderPath > Clone()
Clone the rendering path.
Definition: RenderPath.cpp:313
BlendMode GetBlendMode() const
Return blend mode.
Definition: ParticleEffect2D.h:227
bool Contains(const T &key) const
Return whether contains a key.
Definition: HashSet.h:490
void UpdateTimelineKeys()
Update timeline keys.
Definition: SpriterInstance2D.cpp:201
Value animation class.
Definition: ValueAnimation.h:68
String postData_
POST data.
Definition: HttpRequest.h:93
Iterator & operator++()
Preincrement the pointer.
Definition: HashMap.h:119
SharedPtr< TextureCube > faceSelectCubeMap_
Face selection cube map for shadowed pointlights.
Definition: Renderer.h:496
void OnTextInput(const String &text) override
React to text input event.
Definition: LineEdit.cpp:432
static float ConvertLinearToGamma(float value)
Convert single component of the color from linear to gamma space.
Definition: Color.h:200
int zIndex_
Run time data.
Definition: SpriterData2D.h:311
bool GetInterpolation() const
Return whether interpolation between simulation steps is enabled.
Definition: PhysicsWorld.h:227
Font * font_
Parent font.
Definition: FontFace.h:104
unsigned Size() const
Return number of elements.
Definition: Vector.h:1151
bool Equals(const Matrix2 &rhs) const
Test for equality with another matrix with epsilon.
Definition: Matrix2.h:185
void HandleCancelPressed(StringHash eventType, VariantMap &eventData)
Handle cancel button pressed.
Definition: FileSelector.cpp:474
const PODVector< unsigned char > & GetNetRotationAttr() const
Return network rotation attribute.
Definition: Node.cpp:1517
static void RegisterObject(Context *context)
Register object factory.
Definition: Constraint.cpp:82
void * start_
Data start pointer.
Definition: WorkQueue.h:51
const Matrix3x4 & GetVolumeTransform(Camera *camera)
Return light volume model transform.
Definition: Light.cpp:493
bool Remove(const T &value)
Erase an element by value. Return true if was found and erased.
Definition: Vector.h:1001
VariantMap previousVars_
Previous user variables.
Definition: ReplicationState.h:132
float fogStart_
Fog start distance.
Definition: Zone.h:156
ResourceRef GetTextureAttr() const
Return texture attribute.
Definition: Sprite.cpp:296
String ToString() const
Return as string.
Definition: Vector2.cpp:55
bool returnFailedResources_
Return failed resources flag.
Definition: ResourceCache.h:250
void Define(float min, float max)
Define from minimum and maximum floats (all dimensions same).
Definition: BoundingBox.h:163
CurveType
Curve type.
Definition: SpriterData2D.h:215
~Profiler() override
Destruct.
Definition: Profiler.cpp:43
bool framesDirty_
Coordinate frames dirty flag.
Definition: Constraint.h:205
void SetStartColorVariance(const Color &startColorVariance)
Set start color variance.
Definition: ParticleEffect2D.cpp:369
void Set(const String &key, const JSONValue &value)
Set JSON value with key.
Definition: JSONValue.cpp:268
bool SetIntVector2(const String &name, const IntVector2 &value)
Set an IntVector2 attribute.
Definition: XMLElement.cpp:387
float GetProfilerInterval() const
Return profiler accumulation interval in seconds.
Definition: DebugHud.cpp:275
void SetOwnerBodyAnchor(const Vector2 &anchor)
Set owner body anchor.
Definition: ConstraintDistance2D.cpp:60
unsigned areaId_
Area id to be used for this off mesh connection's internal poly.
Definition: OffMeshConnection.h:90
bool updateInvisible_
Update when invisible flag.
Definition: ParticleEffect.h:363
void SetInterpolationMethod(InterpMethod method)
Set interpolation method.
Definition: ValueAnimation.cpp:255
void GetChildrenRecursive(PODVector< UIElement * > &dest) const
Return child elements recursively.
Definition: UIElement.cpp:2055
void * owner_
Owner.
Definition: ValueAnimation.h:151
StencilOp GetStencilZFail() const
Return stencil operation to do if depth compare fails.
Definition: Graphics.h:549
float dragBeginInterval_
Seconds from mouse button down to begin a drag if there has been no movement exceeding pixel threshol...
Definition: UI.h:379
HashMap< Pair< unsigned char, unsigned char >, unsigned > vertexAttributes_
Vertex attributes.
Definition: OGLShaderProgram.h:99
EventProfiler(Context *context)
Construct.
Definition: EventProfiler.cpp:34
bool operator==(const WeakArrayPtr< T > &rhs) const
Test for equality with another weak array pointer.
Definition: ArrayPtr.h:334
SharedPtr< Material > customMaterial_
Custom material.
Definition: StaticSprite2D.h:168
void CreateJoint()
Create joint.
Definition: Constraint2D.cpp:82
bool GetThreadedOcclusion() const
Return whether occlusion rendering is threaded.
Definition: Renderer.h:331
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: StaticModel.cpp:74
Base class for UI elements.
Definition: UIElement.h:122
void SetNumGeometries(unsigned num)
Set number of geometries.
Definition: StaticModel.cpp:365
Vector3 GetWorldUp() const
Return node's up vector in world space.
Definition: Node.h:447
float GetCellSize() const
Return cell size.
Definition: NavigationMesh.h:201
Variant GetInstanceDefault(const String &name) const
Get instance-level default value.
Definition: Serializable.cpp:1027
Network(Context *context)
Construct.
Definition: Network.cpp:196
BoundingBox boundingBox_
Bounding box relative to the navigation mesh root node.
Definition: NavigationMesh.h:68
unsigned GetNumParticles() const
Return maximum number of particles.
Definition: ParticleEffect.h:230
@ OT_ELLIPSE
Ellipse.
Definition: TileMapDefs2D.h:93
ShaderVariation * vertexShader_
Vertex shader.
Definition: Batch.h:104
void DelayedMarkedDirty(Component *component)
Add a component to the delayed dirty notify queue. Is thread-safe.
Definition: Scene.cpp:836
Renderer(Context *context)
Construct.
Definition: Renderer.cpp:268
Quaternion(float x, float y, float z) noexcept
Construct from Euler angles (in degrees). Equivalent to Y*X*Z.
Definition: Quaternion.h:108
Vector3 operator*(const Vector3 &rhs) const
Multiply a Vector3 which is assumed to represent position.
Definition: Matrix4.h:258
void UpdateTextMaterials(bool forceUpdate=false)
Create materials for text rendering. May only be called from the main thread. Text UI batches must be...
Definition: Text3D.cpp:634
unsigned Size() const
Return size of result set.
Definition: XMLElement.cpp:1051
UniquePtr< btTypedConstraint > constraint_
Bullet constraint.
Definition: Constraint.h:177
~PODVector()
Destruct.
Definition: Vector.h:730
~ConstraintMotor2D() override
Destruct.
const Vector2 & GetLinearOffset() const
Return linear offset.
Definition: ConstraintMotor2D.h:55
void AllocateView()
Allocate the view structure. Called by Renderer.
Definition: Viewport.cpp:214
Vector< WeakPtr< Node > > instanceNodes_
Instance nodes.
Definition: StaticModelGroup.h:86
MutexLock(Mutex &mutex)
Construct and acquire the mutex.
Definition: Mutex.cpp:106
T & operator[](int index)
Subscript the array.
Definition: ArrayPtr.h:113
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: Text3D.cpp:107
const T & Back() const
Return const last element.
Definition: List.h:414
WrapMode GetAttributeAnimationWrapMode(const String &name) const
Return attribute animation wrap mode by name.
Definition: ObjectAnimation.cpp:241
WeakPtr< Node > node_
Link to the actual node.
Definition: ReplicationState.h:161
void SetMinVelocity(float velocity)
Set particle minimum velocity.
Definition: ParticleEffect.cpp:550
void PreloadResourcesXML(const XMLElement &element)
Preload resources from an XML scene or object prefab file.
Definition: Scene.cpp:1367
IntRect border_
The border, represented by the number of pixels from each side.
Definition: StretchableSprite2D.h:50
static void RegisterObject(Context *context)
Register object factory. Drawable2D must be registered first.
Definition: StretchableSprite2D.cpp:127
void ResetShadowMapAllocations()
Reset shadow map allocation counts.
Definition: Renderer.cpp:1566
unsigned size_
Number of nodes.
Definition: ListBase.h:122
bool GetCastShadows() const
Return shadowcaster flag.
Definition: Drawable.h:210
HashSet< StringHash > allowedRemoteEvents_
Allowed remote events.
Definition: Network.h:158
Window(Context *context)
Construct.
Definition: Window.cpp:41
int GetFinishBackgroundResourcesMs() const
Return how many milliseconds maximum to spend on finishing background loaded resources.
Definition: ResourceCache.h:196
static float ConvertGammaToLinear(float value)
Convert single component of the color from gamma to linear space.
Definition: Color.h:189
void SetModalShadeColor(const Color &color)
Set modal shade color.
Definition: Window.cpp:300
void SetDrawShadows(bool enable)
Set shadows on/off.
Definition: Renderer.cpp:355
32-bit hash value for a string.
Definition: StringHash.h:33
bool IsA(const String &className) const
Check if the object is derived from a class.
Definition: ScriptInstance.cpp:416
int GetHeight() const
Return text height.
Definition: Text3D.cpp:463
unsigned GetData(signed char *dest, unsigned numBytes) override
Produce sound data into destination. Return number of bytes produced. Called by SoundSource from the ...
Definition: BufferedSoundStream.cpp:39
Scene * GetScene() const
Return scene.
Definition: View3D.cpp:131
Mutex()
Construct.
Definition: Mutex.cpp:71
static void RegisterObject(Context *context)
Registers this class as an object factory.
Definition: IKEffector.cpp:62
Operating system mutual exclusion primitive.
Definition: Mutex.h:35
void RemoveFromOctree()
Remove from octree.
Definition: Drawable.cpp:407
const Vector2 & GetAnchor() const
Return anchor.
Definition: ConstraintRevolute2D.h:59
bool IsCustomType() const
Return true if specified custom type is stored in the variant.
Definition: Variant.h:1320
@ O_STAGGERED
Staggered.
Definition: TileMapDefs2D.h:43
PODVector< NavAreaStub > navAreas_
Pretransformed navigation areas, no correlation to the geometry above.
Definition: NavBuildData.h:84
IntVector2 ElementToScreen(const IntVector2 &position) override
Convert element coordinates to screen coordinates.
Definition: Sprite.cpp:103
bool searchPackagesFirst_
Search priority flag.
Definition: ResourceCache.h:252
bool readSyncNeeded_
Synchronization needed before read -flag.
Definition: File.h:145
bool IsInCrowd() const
Return true when the agent is in crowd (being managed by a crowd manager).
Definition: CrowdAgent.cpp:512
bool HasProperty(const String &name) const
Return has property (use for script).
Definition: TmxFile2D.cpp:55
float GetLength() const
Return length.
Definition: ConstraintDistance2D.h:67
void SphereCast(PhysicsRaycastResult &result, const Ray &ray, float radius, float maxDistance, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world swept sphere test and return the closest hit.
Definition: PhysicsWorld.cpp:484
HashMap< UIElement *, RenderToTextureData > renderToTexture_
Elements that should be rendered to textures.
Definition: UI.h:441
void SetSpriteSheet(SpriteSheet2D *spriteSheet)
Set sprite sheet.
Definition: Sprite2D.cpp:138
Message box dialog. Manages its lifetime automatically, so the application does not need to hold a re...
Definition: MessageBox.h:36
void SetResizable(bool enable)
Set whether can be resized.
Definition: Window.cpp:257
Control data for an animation.
Definition: AnimationController.h:37
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix4.h:651
void SetLinearVelocity(const Vector3 &velocity)
Set linear velocity.
Definition: RigidBody.cpp:298
void SetFocusElement(UIElement *element, bool byKey=false)
Set focused UI element.
Definition: UI.cpp:179
void SetTransform(const Vector3 &position, const Quaternion &rotation)
Set rigid body position and rotation in world space as an atomic operation.
Definition: RigidBody.cpp:275
void ReleaseRef()
Release the weak reference. Delete the Refcount structure if necessary.
Definition: ArrayPtr.h:408
Variant(const Matrix4 &value)
Construct from a Matrix4.
Definition: Variant.h:511
static size_t Read(SDL_RWops *context, void *ptr, size_t size, size_t maxNum)
Read from the object. Return number of "packets" read.
Definition: RWOpsWrapper.h:101
ConstIterator Find(const T &value) const
Return const iterator to value, or to the end if not found.
Definition: Vector.h:1101
float regionMinSize_
Region minimum size.
Definition: NavigationMesh.h:326
int z_
Z coordinate.
Definition: Vector3.h:163
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintRope2D.h:66
AnimationSet2D * GetAnimationSet() const
Return animation.
Definition: AnimatedSprite2D.cpp:196
void SetShadowBias(const BiasParameters ¶meters)
Set shadow depth bias parameters.
Definition: Light.cpp:365
void OnIndentSet() override
React to indent change.
Definition: Text.cpp:248
const Color & GetAmbientEndColor()
Return ambient end color. Not safe to call from worker threads due to possible octree query.
Definition: Zone.cpp:200
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Draw the Debug Geometry.
Definition: SplinePath.cpp:116
const Vector3 & GetPosition() const
Return constraint position relative to own body.
Definition: Constraint.h:116
bool GetFullscreen() const
Return whether window is fullscreen.
Definition: Graphics.h:360
static void RegisterObject(Context *context)
Register object factory.
Definition: DecalSet.cpp:180
WeakPtr< Node > node_
Scene node.
Definition: Skeleton.h:82
Variant(unsigned long long value)
Construct from unsigned integer.
Definition: Variant.h:349
unsigned GetMaxLength() const
Return maximum text length.
Definition: LineEdit.h:99
SharedPtr< BorderImage > knob_
ProgressBar knob.
Definition: ProgressBar.h:94
bool BeginLoadFromJSONFile(Deserializer &source)
Begin load from JSON file.
Definition: SpriteSheet2D.cpp:271
Node * GetInstanceNode(unsigned index) const
Return instance node by index.
Definition: StaticModelGroup.cpp:316
HashMap< StringHash, HashMap< StringHash, String > > strings_
Storage strings: <Language <StringId, Value> >.
Definition: Localization.h:75
void RemoveEventHandler(const String &eventName) override
Remove a scripted event handler.
Definition: LuaScriptInstance.cpp:335
bool SetData(CubeMapFace face, unsigned level, int x, int y, int width, int height, const void *data)
Set data either partially or fully on a face's mip level. Return true if successful.
Definition: OGLTextureCube.cpp:110
static void RegisterObject(Context *context)
Register object factory.
Definition: ListView.cpp:191
Navigation build data.
Definition: NavBuildData.h:54
Vector3 ToHSV() const
Return HSV color-space representation as a Vector3; the RGB values are clipped before conversion but ...
Definition: Color.cpp:65
RigidBody2D * GetRigidBody(const Vector2 &point, unsigned collisionMask=M_MAX_UNSIGNED)
Return rigid body at point.
Definition: PhysicsWorld2D.cpp:606
bool NotNull() const
Check if the pointer is not null.
Definition: Ptr.h:483
TraversalMode GetTraversalMode() const
Return traversal mode for rendering.
Definition: UIElement.h:643
static const VariantMap emptyVariantMap
Empty variant map.
Definition: Variant.h:1389
void SetShadowSoftness(float shadowSoftness)
Set shadow softness, only works when SHADOWQUALITY_BLUR_VSM is used.
Definition: Renderer.cpp:414
unsigned GetLevels() const
Return number of mip levels.
Definition: Texture.h:79
const Vector2 & GetCenter() const
Return center.
Definition: CollisionCircle2D.h:54
Vector< SharedPtr< Tile2D > > tiles_
Tiles.
Definition: TmxFile2D.h:103
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: DropDownList.cpp:87
float mass_
Mass.
Definition: RigidBody.h:285
const Matrix3x4 & GetInverseWorldTransform() const
Return inverse world transform.
Definition: Zone.cpp:178
void RemoveChildren(bool removeReplicated, bool removeLocal, bool recursive)
Remove child scene nodes that match criteria.
Definition: Node.cpp:886
void HandleRenderSurfaceUpdate(StringHash eventType, VariantMap &eventData)
Handle render surface update event.
Definition: Texture2D.cpp:184
unsigned GetIndex() const
Return pass index. This is used for optimal render-time pass queries that avoid map lookups.
Definition: Technique.h:87
bool GetReverseCulling() const
Return whether to reverse culling; affected by vertical flipping and reflection.
Definition: Camera.h:191
void SetMaxTorque(float maxTorque)
Set max torque.
Definition: ConstraintMotor2D.cpp:104
unsigned GetAuxViewFrameNumber() const
Return last auxiliary view rendered frame number.
Definition: Material.h:244
void AddLight(Light *light)
Add a per-pixel light affecting the object this frame.
Definition: Drawable.h:290
Variant(const CustomVariantValueImpl< T > &value)
Construct from custom value.
Definition: Variant.h:518
BlendMode blendMode_
Blend mode.
Definition: StaticSprite2D.h:146
void Insert(const Iterator &dest, const ConstIterator &start, const ConstIterator &end)
Insert elements by iterators.
Definition: List.h:298
Vector3 GetDirection() const
Return forward direction in parent space. Positive Z axis equals identity rotation.
Definition: Node.h:389
void ClearScriptMethods()
Clear supported script methods.
Definition: ScriptInstance.cpp:612
void SetShadowMapSize(int size)
Set shadow map resolution.
Definition: Renderer.cpp:365
String name_
Object name.
Definition: Variant.h:127
const char * CString() const
Return the C string.
Definition: Str.h:424
bool SetDataRange(const void *data, unsigned start, unsigned count, bool discard=false)
Set a data range in the buffer. Optionally discard data outside the range.
Definition: OGLIndexBuffer.cpp:113
Rect GetRect(const String &name) const
Return a Rect attribute, or default if missing.
Definition: XMLElement.cpp:842
float particleLifespanVariance_
Particle lifespan variance.
Definition: ParticleEffect2D.h:270
Character map.
Definition: SpriterData2D.h:118
SharedArrayPtr< unsigned char > httpReadBuffer_
Read buffer for the worker thread.
Definition: HttpRequest.h:99
int GetNumShadowSplits() const
Return number of shadow map cascade splits for a directional light, considering also graphics API lim...
Definition: Light.cpp:475
ConstIterator(const Iterator &rhs)
Construct from a non-const iterator.
Definition: HashSet.h:125
Vector2 otherBodyGroundAnchor_
Other body ground anchor.
Definition: ConstraintPulley2D.h:79
void GetVector2MinMax(const XMLElement &element, Vector2 &minValue, Vector2 &maxValue)
Read a Vector2 range from an XML element.
Definition: ParticleEffect.cpp:836
Matrix3x4 view_
Cached view matrix.
Definition: Camera.h:230
Vector2 position_
Position.
Definition: TileMapDefs2D.h:216
void Clip(bool clipAlpha=false)
Clip to [0, 1.0] range.
Definition: Color.cpp:220
String name_
Name.
Definition: TileMapDefs2D.h:212
void SetDeepEnabled(bool enable)
Set enabled state on self and child nodes. Nodes' own enabled state is remembered (IsEnabledSelf) and...
Definition: Node.cpp:720
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: AnimationSet2D.cpp:144
bool override_
Override mode flag.
Definition: Zone.h:142
Internal structure for 3D rendering work. Created for each backbuffer and texture viewport,...
Definition: View.h:110
const IntVector2 & GetIntVector2() const
Return an IntVector2 or empty on type mismatch.
Definition: Variant.h:1256
IntVector2 doubleClickFirstPos_
Screen position of first mouse click for double click distance checking.
Definition: UI.h:421
Base class for resources.
Definition: Resource.h:54
DropDownList * GetFilterList() const
Return filter dropdown.
Definition: FileSelector.h:99
const PODVector< Vector2 > & GetVertices() const
Return vertices.
Definition: CollisionChain2D.h:63
unsigned color_
Color.
Definition: CustomGeometry.h:38
EventHandler * eventHandler_
Active event handler. Not stored in a stack for performance reasons; is needed only in esoteric cases...
Definition: Context.h:242
unsigned GetShaderParameterHash() const
Return shader parameter hash value. Used as an optimization to avoid setting shader parameters unnece...
Definition: Material.h:256
void SetLooped(bool looped)
Set looping enabled/disabled.
Definition: AnimationState.cpp:160
Constraint(Context *context)
Construct.
Definition: Constraint.cpp:55
bool bufferDirty_
Vertex buffer needs rewrite / resizing flag.
Definition: DecalSet.h:243
void EraseSwap(unsigned pos, unsigned length=1)
Erase a range of elements by swapping elements from the end of the array.
Definition: Vector.h:978
const Color & GetColor(Corner corner) const
Return corner color.
Definition: UIElement.h:478
void SetObjectAttributeAnimation(const String &name, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
Set object attribute animation internal.
Definition: Animatable.cpp:473
float delay_
Delay in seconds for notifying changes.
Definition: FileWatcher.h:77
void FindZone(Drawable *drawable)
Find and set a new zone for a drawable when it has moved.
Definition: View.cpp:2780
Ray Transformed(const Matrix3x4 &transform) const
Return transformed by a 3x4 matrix. This may result in a non-normalized direction.
Definition: Ray.cpp:462
bool IsArray() const
Check is array.
Definition: JSONValue.h:187
bool ProcessMessage(int msgID, MemoryBuffer &buffer)
Process a message from the server or client. Called by Network.
Definition: Connection.cpp:448
unsigned GetViewMask() const
Return view mask.
Definition: Terrain.h:169
bool IsSorted() const
Return whether billboards are sorted.
Definition: ParticleEffect.h:242
BodyType2D GetBodyType() const
Return body type.
Definition: RigidBody2D.h:122
unsigned numIndices_
Indices in the current decals.
Definition: DecalSet.h:233
unsigned GetNumTextureFrames() const
Return number of texture animation frames.
Definition: ParticleEffect.h:329
Skeleton skeleton_
Skeleton.
Definition: AnimatedModel.h:213
void SaveByteCode(const String &binaryShaderName)
Save bytecode to a file.
Definition: OGLShaderVariation.cpp:202
void SendClientUpdate()
Send latest controls from the client. Called by Network.
Definition: Connection.cpp:281
bool Expired() const
Return whether the array has expired. If null pointer, always return true.
Definition: ArrayPtr.h:385
WeakPtr< XMLFile > file_
XML file.
Definition: XMLElement.h:348
SharedPtr< Texture2D > texture_
Texture that UIElement will be rendered into.
Definition: UIComponent.h:69
unsigned startIndex_
Instance stream start index, or M_MAX_UNSIGNED if transforms not pre-set.
Definition: Batch.h:174
ProfilerBlock(ProfilerBlock *parent, const char *name)
Construct with the specified parent block and name.
Definition: Profiler.h:37
Quaternion(float w, float x, float y, float z) noexcept
Construct from values.
Definition: Quaternion.h:68
void UpdateAnimation(const FrameInfo &frame)
Recalculate animations. Called from Update().
Definition: AnimatedModel.cpp:1255
bool IsAnimatedNetworkAttribute(const AttributeInfo &attrInfo) const
Is animated network attribute.
Definition: Animatable.cpp:533
SharedPtr< Technique > original_
Original technique, in case the material adds shader compilation defines. The modified clones are req...
Definition: Material.h:68
void SetOccluder(bool enable)
Set occlusion flag.
Definition: Drawable.cpp:229
Matrix3x4 GetEffectiveWorldTransform() const
Get effective world transform for matrix and frustum calculations including reflection but excluding ...
Definition: Camera.cpp:574
Texture * GetRampTexture() const
Return range attenuation texture.
Definition: Light.h:289
UniquePtr< FindPathData > pathData_
Temporary data for finding a path.
Definition: NavigationMesh.h:310
bool WriteShort(short value)
Write a 16-bit integer.
Definition: Serializer.cpp:46
unsigned GetNumOutputs() const
Return number of output rendertargets.
Definition: RenderPath.h:127
bool markToStencil_
Mark to stencil flag.
Definition: RenderPath.h:180
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle begin frame event. Automatic resource reloads and the finalization of background loaded resour...
Definition: ResourceCache.cpp:1073
Vector3 normal_
Normal.
Definition: CustomGeometry.h:36
Zone * zone_
Zone.
Definition: Batch.h:195
bool IsInitialized() const
Return whether engine has been initialized.
Definition: Engine.h:100
void CreateObject()
(Re)create the script object and check for supported methods if successfully created.
Definition: ScriptInstance.cpp:563
void ThreadFunction() override
Directory watching loop.
Definition: FileWatcher.cpp:237
Vector3 previousOffset_
Previous offset to camera for determining whether sorting is necessary.
Definition: RibbonTrail.h:241
void ToggleAll()
Toggle all elements.
Definition: DebugHud.cpp:265
void SetClipChildren(bool enable)
Set whether should clip child elements. Default false.
Definition: UIElement.cpp:869
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: LuaScriptInstance.cpp:501
virtual Material * GetMaterial() const
Return material from the first geometry, assuming all the geometries use the same material.
Definition: StaticModel.h:83
void Rehash()
Rehash the buckets.
Definition: HashSet.h:625
bool IsInitialized() const
Return whether an audio stream has been reserved.
Definition: Audio.h:87
void SetAnimationName(const String &name)
Set animation name.
Definition: Animation.cpp:289
Integer & AsInteger()
Return underlying integer (non-constant).
Definition: FlagSet.h:229
void SetRadius(float newRadius)
Set the blocking radius of this obstacle.
Definition: Obstacle.cpp:81
float temperature_
Light temperature.
Definition: Light.h:351
Timer lastHeardTimer_
Last heard timer, resets when new packet is incoming.
Definition: Connection.h:347
const String & GetDefines() const
Return defines.
Definition: ShaderVariation.h:129
float maxHeight_
Maximum height.
Definition: CollisionShape.h:139
unsigned char * GetData()
Return memory area.
Definition: MemoryBuffer.h:51
Iterator Erase(const Iterator &it)
Erase a pair by iterator. Return iterator to the next pair.
Definition: HashMap.h:429
void CleanupFramebuffers()
Clean up all framebuffers. Called when destroying the context. Used only on OpenGL.
Definition: OGLGraphics.cpp:3138
void SetTiled(bool enable)
Set tiled mode.
Definition: BorderImage.cpp:138
Vector3 GetTargetRotationEuler() const
Required for the editor, get the target rotation in euler angles.
Definition: IKEffector.cpp:140
void SetHeight(float height)
Scale UI to the specified height in pixels.
Definition: UI.cpp:751
StringHash GetNameHash() const
Return name hash.
Definition: Resource.h:89
void SetMaterial(Material *material)
Set material.
Definition: ParticleEffect.cpp:440
bool GetBool(bool defaultValue=false) const
Return boolean value.
Definition: JSONValue.h:192
Timer repeatTimer_
Paging minimum repeat timer.
Definition: Slider.h:118
float GetMass() const
Return mass.
Definition: RigidBody2D.cpp:509
bool GetFixedHeightResizing() const
Return whether is resizing height is fixed.
Definition: Window.h:110
Vector2 vsmShadowParams_
Shadow parameters when VSM is used, they help to reduce light bleeding.
Definition: Renderer.h:552
void PostStep(float timeStep)
Trigger update after each physics simulation step.
Definition: PhysicsWorld.cpp:818
bool IsEmpty()
Return true if there are no drawable objects in this octant and child octants.
Definition: Octree.h:94
const Vector2 & GetOtherBodyAnchor() const
Return other body anchor.
Definition: ConstraintRope2D.h:54
bool Equals(const Matrix3x4 &rhs) const
Test for equality with another matrix with epsilon.
Definition: Matrix3x4.h:636
float maxRadiusVariance_
Max radius variance.
Definition: ParticleEffect2D.h:310
asIScriptObject * GetObject() const
Get the asIScriptObject to call the method on, can be null.
Definition: ScriptFile.h:169
void SetButtonTexts(const String &okText, const String &cancelText)
Set button texts.
Definition: FileSelector.cpp:187
void DrawSegment(const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color) override
Draw a line segment.
Definition: PhysicsWorld2D.cpp:258
Vector3 HalfSize() const
Return half-size.
Definition: BoundingBox.h:268
String class.
Definition: Str.h:46
void ApplyStyleRecursive(UIElement *element)
Recursively apply style to a child element hierarchy when adding to an element.
Definition: UIElement.cpp:2066
void Insert(const HashSet< T > &set)
Insert a set.
Definition: HashSet.h:325
void SetEffect(ParticleEffect *effect)
Set particle effect.
Definition: ParticleEmitter.cpp:263
unsigned lockStart_
Lock start vertex.
Definition: VertexBuffer.h:162
UpdateGeometryType
Geometry update type.
Definition: Drawable.h:60
bool IsCompleting() const
Return whether the queue is currently completing work in the main thread.
Definition: WorkQueue.h:109
bool IsController() const
Return whether is a game controller. Game controllers will use standardized axis and button mappings.
Definition: Input.h:85
static void RegisterObject(Context *context)
Register object factory.
Definition: PhysicsWorld2D.cpp:73
const Vector< SharedPtr< IndexBuffer > > & GetIndexBuffers() const
Return index buffers.
Definition: Model.h:161
SharedArrayPtr< unsigned char > shadowData_
Shadow data.
Definition: VertexBuffer.h:148
void SetRotation2D(float rotation)
Set rotation in parent space (for Urho2D).
Definition: Node.h:145
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: OffMeshConnection.cpp:66
LuaFunction * scriptObjectMethods_[MAX_LUA_SCRIPT_OBJECT_METHODS]
Script object method.
Definition: LuaScriptInstance.h:185
FaceCameraMode faceCameraMode_
Text rotation mode in relation to the camera.
Definition: Text3D.h:204
void SetVerticalAlignment(VerticalAlignment align)
Set vertical alignment.
Definition: UIElement.cpp:709
void OnObjectAnimationAdded(ObjectAnimation *objectAnimation)
Handle object animation added.
Definition: Animatable.cpp:481
void SetBoundingBox(const BoundingBox &box)
Set local-space bounding box.
Definition: Model.cpp:486
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ParticleEffect.cpp:320
void MarkReplicationDirty()
Mark node dirty in scene replication states.
Definition: Node.cpp:1788
unsigned SystemRunAsync(const String &fileName, const Vector< String > &arguments)
Run a specific program asynchronously. Return a request ID or M_MAX_UNSIGNED if failed....
Definition: FileSystem.cpp:416
String ToString() const
Return as string.
Definition: Vector2.cpp:48
void SetTriangleMesh(Model *model, unsigned lodLevel=0, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a triangle mesh from Model. If you update a model's geometry and want to reapply the shape,...
Definition: CollisionShape.cpp:671
bool vertexLights_
Vertex light flag.
Definition: View.h:89
PODVector< unsigned char > GetDelayedCallsAttr() const
Return delayed method calls attribute.
Definition: ScriptInstance.cpp:489
static const IntVector3 ONE
(1,1,1) vector.
Definition: Vector3.h:180
CompareMode depthTestMode_
Depth compare mode.
Definition: Graphics.h:815
bool dirty_
World transform needs update flag.
Definition: Node.h:671
void SetName(const String &name)
Set name of the scene node. Names are not required to be unique.
Definition: Node.cpp:322
void UpdateEventSubscription()
Subscribe/unsubscribe to update events based on current enabled state and update event mask.
Definition: LogicComponent.cpp:106
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: Plane.cpp:35
ListNodeBase()
Construct.
Definition: ListBase.h:41
void SetEnabledRecursive(bool enable)
Set enabled state on self and child nodes. Unlike SetDeepEnabled this does not remember the nodes' ow...
Definition: Node.cpp:733
void SetMaterial(Material *material)
Set material.
Definition: TerrainPatch.cpp:227
short texWidth_
Width in texture.
Definition: FontFace.h:44
void HandleItemFocusChanged(StringHash eventType, VariantMap &eventData)
Handle global focus change to check whether an invisible item was focused.
Definition: ListView.cpp:1130
void MarkNeighborsDirty()
Mark neighbors dirty.
Definition: Terrain.h:240
void SetThreadedOcclusion(bool enable)
Set whether to thread occluder rendering. Default false.
Definition: Renderer.cpp:517
static const Vector2 pixelUVOffset
Pixel perfect UV offset.
Definition: Graphics.h:866
ObserverPositionSendMode sendMode_
Send mode for the observer position & rotation.
Definition: Connection.h:327
int monitor_
Monitor for fullscreen mode. Has no effect in windowed mode.
Definition: Graphics.h:99
bool initialized_
Initialized flag.
Definition: Renderer.h:602
Node * parent_
Parent scene node.
Definition: Node.h:683
static const IntVector3 UP
(0,1,0) vector.
Definition: Vector3.h:172
int width_
Width.
Definition: TileMapDefs2D.h:54
bool compressed_
Compressed flag.
Definition: PackageFile.h:102
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Drawable.cpp:108
void HandleExitRequested(StringHash eventType, VariantMap &eventData)
Handle exit requested event. Auto-exit if enabled.
Definition: Engine.cpp:975
Variant(unsigned value)
Construct from unsigned integer.
Definition: Variant.h:343
static const IntVector3 DOWN
(0,-1,0) vector.
Definition: Vector3.h:174
void SetUseReflection(bool enable)
Set reflection mode.
Definition: Camera.cpp:216
Matrix2 Inverse() const
Return inverse.
Definition: Matrix2.cpp:40
unsigned buttons_
Button state.
Definition: Controls.h:64
void SetFaceCameraMode(FaceCameraMode mode)
Set how the particles should rotate in relation to the camera. Default is to follow camera rotation o...
Definition: ParticleEffect.cpp:653
void AddColorTime(const Color &color, float time)
Add a color frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:591
bool dynamic_
Dynamic flag.
Definition: IndexBuffer.h:113
virtual bool Assign(const CustomVariantValue &rhs)
Assign value.
Definition: Variant.h:193
static const Color BLUE
Opaque blue color.
Definition: Color.h:275
void SetAnimationLodBias(float bias)
Set animation LOD bias.
Definition: BillboardSet.cpp:340
IntRect(int left, int top, int right, int bottom) noexcept
Construct from coordinates.
Definition: Rect.h:294
virtual void OnDragCancel(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags cancelButtons, Cursor *cursor)
React to a mouse drag cancel event (ie, when an extra button is pressed).
Definition: UIElement.cpp:445
float fogHeightScale_
Fog height cale.
Definition: Zone.h:162
Skeletal animation keyframe.
Definition: Animation.h:46
Base class for objects with type identification, subsystem access and event sending/receiving capabil...
Definition: Object.h:81
unsigned GetGPUObjectName() const
Return the object name. Applicable only on OpenGL.
Definition: GPUObject.h:65
unsigned batchUpdatedFrameNumber_
Batch updated frame number.
Definition: Renderer2D.h:54
static const JSONArray emptyArray
Empty JSON array.
Definition: JSONValue.h:276
SharedPtr(const SharedPtr< T > &rhs) noexcept
Copy-construct from another shared pointer.
Definition: Ptr.h:52
float sizeMul_
Particle size multiplicative parameter.
Definition: ParticleEffect.h:417
void SetCheckedOffset(const IntVector2 &offset)
Set checked image offset.
Definition: CheckBox.cpp:106
bool boolValue_
Boolean value.
Definition: JSONValue.h:299
static void RegisterObject(Context *context)
Register object factory.
Definition: Technique.cpp:253
bool IsRelative() const
Return whether billboards are relative to the scene node.
Definition: BillboardSet.h:116
bool GetUseHotSpot() const
Return whether to use custom-defined hot spot.
Definition: StaticSprite2D.h:104
const Variant & GetGlobalVar(StringHash key) const
Return global variable based on key.
Definition: Object.cpp:406
void GetDrawables()
Query the octree for drawable objects.
Definition: View.cpp:792
void AddItem(UIElement *item)
Add item to the end of the list.
Definition: ListView.cpp:345
void RemoveEventSender(Object *sender)
Remove an event sender from all receivers. Called on its destruction.
Definition: Context.cpp:422
bool operator==(const List< T > &rhs) const
Test for equality with another list.
Definition: List.h:241
bool IsDown(unsigned button) const
Check if a button is held down.
Definition: Controls.h:52
bool shadersDirty_
Shaders need reloading flag.
Definition: Renderer.h:600
const String & GetVertexShaderDefines() const
Return vertex shader defines.
Definition: Technique.h:120
~ParticleEmitter2D() override
Destruct.
bool Load(Deserializer &source) override
Load from binary data. Removes all existing child nodes and components first. Return true if successf...
Definition: Scene.cpp:114
~CollisionPolygon2D() override
Destruct.
Light * light_
Per-pixel light.
Definition: Batch.h:295
Color color_
Color.
Definition: Light.h:349
EventHandler * GetEventHandler() const
Return active event handler. Null outside event handling.
Definition: Object.cpp:431
void ConfigureNetworkSimulator()
Reconfigure network simulator parameters on all existing connections.
Definition: Network.cpp:1025
CrowdManager(Context *context)
Construct.
Definition: CrowdManager.cpp:77
bool resizable_
Resizable flag.
Definition: Window.h:143
IntRect() noexcept
Construct a zero rect.
Definition: Rect.h:276
Vector3 Column(unsigned j) const
Return matrix column.
Definition: Matrix3.h:272
StringHash GetNameHash() const
Return name hash.
Definition: Node.h:350
bool GetExecuteConsoleCommands() const
Return whether is executing engine console commands as script code.
Definition: Script.h:97
Vector3 position_
Observer position for interest management.
Definition: Connection.h:323
bool GetAutoResolve() const
Return multisampling autoresolve mode.
Definition: RenderSurface.cpp:102
static unsigned GetTimeSinceEpoch()
Get system time as seconds since 1.1.1970.
Definition: Timer.cpp:167
bool operator!=(const WeakArrayPtr< T > &rhs) const
Test for inequality with another weak array pointer.
Definition: ArrayPtr.h:337
SharedArrayPtr< unsigned char > fontData_
Font data.
Definition: Font.h:101
void SetUseRendererStats(bool enable)
Set whether to show 3D geometry primitive/batch count only. Default false.
Definition: DebugHud.cpp:255
void HandleSceneUpdate(StringHash eventType, VariantMap &eventData)
Handle scene update event.
Definition: ScriptInstance.cpp:838
unsigned zoneMask_
Zone mask.
Definition: Terrain.h:307
void getWorldTransform(btTransform &worldTrans) const override
Return initial world transform to Bullet.
Definition: RigidBody.cpp:147
Low-resolution operating system timer.
Definition: Timer.h:31
LuaFunction * GetFunction(int index)
Return Lua function at the given stack index.
Definition: LuaScript.cpp:425
Vector< Vertex2D > vertices_
Vertices.
Definition: Drawable2D.h:62
int GetAsyncLoadingMs() const
Return maximum milliseconds per frame to spend on async loading.
Definition: Scene.h:208
bool GetTileFlipX() const
Return tile flip X.
Definition: TileMapDefs2D.h:193
Texture2D * GetTexture() const
Return texture which will be used for rendering UI to.
Definition: UIComponent.cpp:193
float GetSmoothingConstant() const
Return motion smoothing constant.
Definition: Scene.h:202
ScreenModeParams screenParams_
Screen mode parameters.
Definition: Graphics.h:135
BlendMode blendMode_
Blend mode.
Definition: ParticleEmitter2D.h:149
const Matrix3x4 & GetView() const
Return view matrix.
Definition: Camera.cpp:585
T ToDegrees(const T radians)
Convert radians to degrees.
Definition: MathDefs.h:103
@ LINEAR_CURVE
Linear interpolation.
Definition: Spline.h:43
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: RigidBody2D.cpp:548
float GetEffectDepthBias() const
Return effect depth bias.
Definition: Text3D.cpp:453
float lifetime_
Lifetime.
Definition: RibbonTrail.h:233
Vector2 otherBodyAnchor_
Other body anchor.
Definition: ConstraintPulley2D.h:83
lua_State * luaState_
Lua state.
Definition: LuaScriptInstance.h:173
Vector3 previousPosition_
Previous position of tail.
Definition: RibbonTrail.h:215
RenderSurface * renderTarget_
Destination color rendertarget.
Definition: View.h:332
~AutoProfileBlock()
Destruct. End the profiling block.
Definition: Profiler.h:243
RenderSurface * lastCustomDepthSurface_
Last used custom depth render surface.
Definition: View.h:340
bool GetLevelsDirty() const
Return whether rendertarget mipmap levels need regenration.
Definition: Texture.h:118
float GetTime(const String &name) const
Return animation time position.
Definition: AnimationController.cpp:501
Button * closeButton_
Close button.
Definition: FileSelector.h:171
Vector4 Row(unsigned i) const
Return matrix row.
Definition: Matrix4.h:645
Texture * viewportTextures_[MAX_VIEWPORT_TEXTURES]
Texture(s) for sampling the viewport contents. Allocated if necessary.
Definition: View.h:336
void SetNodeIDsAttr(const VariantVector &value)
Set node IDs attribute.
Definition: StaticModelGroup.cpp:321
Queue for light related draw calls.
Definition: Batch.h:292
void SetKinematic(bool enable)
Set rigid body kinematic mode. In kinematic mode forces are not applied to the rigid body.
Definition: RigidBody.cpp:459
float GetDelay() const
Return the delay in seconds for notifying file changes.
Definition: FileWatcher.h:65
float GetLodDistance() const
Return LOD scaled distance from camera.
Definition: Drawable.h:263
Hash set/map base class.
Definition: HashBase.h:100
void SetupLightVolumeBatch(Batch &batch)
Set up a light volume rendering batch.
Definition: View.cpp:3003
static void RegisterObject(Context *context)
Register object factory.
Definition: DropDownList.cpp:71
float GetAgentHeight() const
Return navigation agent height.
Definition: NavigationMesh.h:207
unsigned GetFormat(CompressedFormat format) const
Return hardware format for a compressed image format, or 0 if unsupported.
Definition: OGLGraphics.cpp:2064
int GetMaxHeight() const
Return minimum height.
Definition: UIElement.h:436
Text * cancelButtonText_
Cancel button text.
Definition: FileSelector.h:169
RigidBody2D(Context *context)
Construct.
Definition: RigidBody2D.cpp:50
2D Physics raycast hit.
Definition: PhysicsWorld2D.h:38
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CrowdAgent.cpp:154
unsigned gBufferPassIndex_
Index of the GBuffer pass.
Definition: View.h:421
const TextureFrame * GetTextureFrame(unsigned index) const
Return a texture animation frame, or null if outside range.
Definition: ParticleEffect.cpp:785
static void RegisterObject(Context *context)
Register object factory.
Definition: Cursor.cpp:102
void RemoveComponent(Component *component)
Remove a component from this node.
Definition: Node.cpp:1004
File * SearchResourceDirs(const String &name)
Search FileSystem for file.
Definition: ResourceCache.cpp:1101
Vector< SharedPtr< Component > > components_
Components.
Definition: Node.h:697
virtual void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor)
Return UI rendering batches.
Definition: UIElement.cpp:343
LightType lightType_
Light type.
Definition: Light.h:347
unsigned GetNumRows() const
Return number of rows.
Definition: Text.h:175
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: CheckBox.cpp:59
Sphere octree query.
Definition: OctreeQuery.h:94
unsigned GetNumRenderTargets() const
Return number of rendertargets.
Definition: RenderPath.h:236
ValueAnimation * GetAnimation() const
Return animation.
Definition: ValueAnimationInfo.h:66
Entity * GetEntity() const
Return current entity.
Definition: SpriterInstance2D.h:70
Animation instance per-track data.
Definition: AnimationState.h:51
void SetIKEffectorNode(ik_node_t *effectorNode)
Intended to be used only by IKSolver.
Definition: IKEffector.cpp:325
double GetDouble() const
Return double or zero on type mismatch. Ints and floats are converted.
Definition: Variant.h:1164
static const Color YELLOW
Opaque yellow color.
Definition: Color.h:281
List< WorkItem * > queue_
Work item prioritized queue for worker threads. Pointers are guaranteed to be valid (point to workIte...
Definition: WorkQueue.h:136
Vector2 layoutFlexScale_
Layout flex scale.
Definition: UIElement.h:726
bool drawObstacles_
Debug draw Obstacles.
Definition: DynamicNavigationMesh.h:146
unsigned maxIndices_
Maximum indices.
Definition: DecalSet.h:237
void MoveRange(unsigned dest, unsigned src, unsigned count)
Move a range of elements within the vector.
Definition: Vector.h:1164
void GetScriptMethods()
Check for supported script methods.
Definition: ScriptInstance.cpp:626
float lastScaledTime_
Last scaled time.
Definition: ValueAnimationInfo.h:96
RigidBody(Context *context)
Construct.
Definition: RigidBody.cpp:64
AllocatorNode * free_
First free node.
Definition: Allocator.h:47
Material * GetMaterial() const
Get material used for custom rendering.
Definition: BorderImage.cpp:247
String shape_
Current shape definition.
Definition: Cursor.h:138
HashMap< String, String > appStats_
Hashmap containing application specific stats.
Definition: DebugHud.h:123
static const unsigned NPOS
Position for "not found".
Definition: Str.h:508
void SetTextureAttr(const ResourceRef &value)
Set texture attribute.
Definition: BorderImage.cpp:220
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: Light.cpp:120
int GetRowWidth(unsigned index) const
Return width of row by index.
Definition: Text3D.cpp:483
~Geometry() override
Destruct.
void OnWindowResized()
Window was resized through user interaction. Called by Input subsystem.
Definition: OGLGraphics.cpp:2209
bool tripleBuffer_
Whether the triple bufferization is used.
Definition: Graphics.h:95
void EndFrame()
End profiling frame and update interval and total values.
Definition: Profiler.h:90
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: UnknownComponent.cpp:107
void SetMinParticleSize(const Vector2 &size)
Set particle minimum size.
Definition: ParticleEffect.cpp:530
void SetUTF8FromLatin1(const char *str)
Construct UTF8 content from Latin1.
Definition: Str.cpp:733
void ResetScene()
Reset scene.
Definition: View3D.cpp:156
void CleanupShaderPrograms(ShaderVariation *variation)
Clean up shader parameters when a shader variation is released or destroyed.
Definition: OGLGraphics.cpp:2322
float GetAttenuation() const
Return attenuation.
Definition: SoundSource.h:99
const Color & GetStartColorVariance() const
Return start color variance.
Definition: ParticleEffect2D.h:179
void BuildHull(const PODVector< Vector3 > &vertices)
Build the convex hull from vertices.
Definition: CollisionShape.cpp:282
static void ConstructElements(T *dest, unsigned count)
Construct elements using default ctor.
Definition: Vector.h:544
bool shadowCompare_
Shadow compare mode.
Definition: Texture.h:223
void SetLinearRestThreshold(float threshold)
Set linear velocity deactivation threshold.
Definition: RigidBody.cpp:318
IntVector2 Max() const
Return right-bottom corner position.
Definition: Rect.h:446
void SetCastShadows(bool enable)
Set shadowcaster flag.
Definition: Drawable.cpp:223
DropDownList * interpreters_
Interpreter drop down list.
Definition: Console.h:151
void GetResources(PODVector< Resource * > &result, StringHash type) const
Return all loaded resources of a specific type.
Definition: ResourceCache.cpp:720
void SetConstantForce(const Vector3 &force)
Set constant force acting on particles.
Definition: ParticleEffect.cpp:500
CubeMapLayout
Cubemap single image layout modes.
Definition: GraphicsDefs.h:282
Skeleton & GetSkeleton()
Return skeleton.
Definition: Model.h:155
Vector< UIElement * > dragElementsConfirmed_
Confirmed drag elements cache.
Definition: UI.h:435
unsigned GetViewMask() const
Return view mask.
Definition: Camera.h:131
bool smoothing_
Smoothing enable flag.
Definition: Terrain.h:291
unsigned queryFilterType_
Agent's query filter type, it is an index to the query filter buffer configured in Detour crowd manag...
Definition: CrowdAgent.h:224
Vector3 GetUp() const
Return up direction in parent space. Positive Y axis equals identity rotation.
Definition: Node.h:392
float lastTimeStep_
Last scene timestep.
Definition: ParticleEmitter.h:142
void SetSnapThreshold(float threshold)
Set network client motion smoothing snap threshold.
Definition: Scene.cpp:661
StringVector columns_
Column headers from the resultset.
Definition: ODBCResult.h:66
b2RopeJointDef jointDef_
Box2D joint def.
Definition: ConstraintRope2D.h:64
unsigned renderBuffer_
OpenGL renderbuffer name.
Definition: RenderSurface.h:136
const Vector< AnimationTriggerPoint > & GetTriggers() const
Return animation trigger points.
Definition: Animation.h:183
void ApplyForce(const Vector2 &force, const Vector2 &point, bool wake)
Apply force.
Definition: RigidBody2D.cpp:329
PODVector< ProfilerBlock * > children_
Child blocks.
Definition: Profiler.h:150
void OnDeviceLost()
Mark the GPU resource destroyed on graphics context destruction. Only used on OpenGL.
Definition: OGLRenderSurface.cpp:88
int dragElementsCount_
Number of elements in dragElements_.
Definition: UI.h:429
Matrix3 ToMatrix3() const
Return the combined rotation and scaling matrix.
Definition: Matrix4.h:520
~Zone() override
Destruct.
bool deferredSupport_
Deferred rendering support flag.
Definition: Graphics.h:741
bool SetScreenMode(int width, int height, const ScreenModeParams ¶ms, bool maximize=false)
Definition: OGLGraphics.cpp:332
void SetHoverColor(const Color &color)
Set hover background color. Color with 0 alpha (default) disables.
Definition: UISelectable.cpp:64
Time and frame counter subsystem.
Definition: Timer.h:78
void SetTextSelectable(bool enable)
Set whether selections are allowed, default true.
Definition: LineEdit.cpp:527
InterpolationMode GetInterpolationMode() const
Get the Interpolation Mode.
Definition: SplinePath.h:76
Crowd manager scene component. Should be added only to the root scene node.
Definition: CrowdManager.h:59
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionEdge2D.cpp:83
const Vector2 & GetVertex(unsigned index) const
Return vertex.
Definition: CollisionChain2D.h:60
Node * GetControlledNode() const
Get the controlled Node.
Definition: SplinePath.h:88
void GetChildrenWithTagRecursive(PODVector< UIElement * > &dest, const String &tag) const
Return child elements with a specific tag recursively.
Definition: UIElement.cpp:1730
void SetSerializeParticles(bool enable)
Set whether particles should be serialized. Default true, set false to reduce scene file size.
Definition: ParticleEmitter.cpp:306
DebugRenderer(Context *context)
Construct.
Definition: DebugRenderer.cpp:50
void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag motion.
Definition: Slider.cpp:125
float rotationSpeed_
Rotation speed.
Definition: ParticleEmitter.h:46
float GetFinishParticleSize() const
Return finish particle size.
Definition: ParticleEffect2D.h:197
BlendMode blendMode_
Blend mode.
Definition: Technique.h:150
bool WriteBoundingBox(const BoundingBox &value)
Write a bounding box.
Definition: Serializer.cpp:174
BatchGroup(const Batch &batch)
Construct from a batch.
Definition: Batch.h:143
void BeginContact(b2Contact *contact) override
Called when two fixtures begin to touch.
Definition: PhysicsWorld2D.cpp:107
float doubleClickInterval_
Seconds between clicks to register a double click.
Definition: UI.h:377
void UpdatePatchLod(TerrainPatch *patch)
Update patch based on LOD and neighbor LOD.
Definition: Terrain.cpp:763
void Resize(unsigned newLength)
Resize the string.
Definition: Str.cpp:1280
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Text3D.cpp:508
bool fontDataLost_
Font texture data lost flag.
Definition: Text3D.h:216
HashMap< String, String > nameToValueMapping_
Property name to property value mapping.
Definition: TileMapDefs2D.h:120
Property list (plist).
Definition: PListFile.h:142
void SetNumBillboards(unsigned num)
Set number of billboards.
Definition: BillboardSet.cpp:261
virtual void OnSetEditable()
React to editable status change.
Definition: UIElement.h:198
unsigned totalSize_
Package file total size.
Definition: PackageFile.h:96
unsigned maxLights_
Maximum per-pixel lights.
Definition: Drawable.h:381
void DefineSprite(const String &name, const IntRect &rectangle, const Vector2 &hotSpot=Vector2(0.5f, 0.5f), const IntVector2 &offset=IntVector2::ZERO)
Define sprite.
Definition: SpriteSheet2D.cpp:97
void SetFontHintLevel(FontHintLevel level)
Set the hinting level used by FreeType fonts.
Definition: UI.cpp:709
T * GetParentDerivedComponent(bool fullTraversal=false) const
Return first component derived from class in the parent node, or if fully traversing then the first n...
Definition: Node.h:762
UniquePtr< btBroadphaseInterface > broadphase_
Bullet collision broadphase.
Definition: PhysicsWorld.h:308
const XPathResultSet * GetXPathResultSet() const
Return XPath query result set.
Definition: XMLElement.h:291
void SetWidth(float width)
Set width of the tail. Only works for face camera trail type.
Definition: RibbonTrail.cpp:871
CheckBox(Context *context)
Construct.
Definition: CheckBox.cpp:37
bool operator!=(const PODVector< T > &rhs) const
Test for inequality with another vector.
Definition: Vector.h:795
void SendDoubleClickEvent(UIElement *beginElement, UIElement *endElement, const IntVector2 &firstPos, const IntVector2 &secondPos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers)
Send a UI double click event.
Definition: UI.cpp:1724
unsigned timeStamp_
Source code timestamp.
Definition: Shader.h:79
unsigned GetStencilWriteMask() const
Return stencil write bitmask.
Definition: Graphics.h:558
3D model resource.
Definition: Model.h:108
const String & GetStartBoneName(const String &name) const
Return animation start bone name, or empty string if no such animation.
Definition: AnimationController.cpp:495
SLNet::SystemAddress * natPunchServerAddress_
NAT punchtrough server information.
Definition: Network.h:184
void SetLayer(unsigned char layer)
Set blending layer.
Definition: AnimationState.cpp:364
bool LoadJSON(const JSONValue &source)
Load from JSON data. Return true if successful.
Definition: ObjectAnimation.cpp:131
void SetNodeAnimationStatesAttr(const VariantVector &value)
Set node animation states attribute.
Definition: AnimationController.cpp:712
static char endZero
End zero for empty strings.
Definition: Str.h:550
WeakPtr(const WeakPtr< U > &rhs) noexcept
Copy-construct from another weak pointer allowing implicit upcasting.
Definition: Ptr.h:298
void ReinterpretCast(const SharedArrayPtr< U > &rhs)
Perform a reinterpret cast from a shared array pointer of another type.
Definition: ArrayPtr.h:144
unsigned components_
Number of color components.
Definition: Image.h:222
void SetBidirectional(bool enabled)
Set bidirectional flag. Default true.
Definition: OffMeshConnection.cpp:95
RenderPath * GetDefaultRenderPath() const
Return default renderpath.
Definition: Renderer.cpp:559
unsigned deviceID_
SDL audio device ID.
Definition: Audio.h:131
b2GearJointDef jointDef_
Box2D joint def.
Definition: ConstraintGear2D.h:64
int oversampling_
Oversampling level.
Definition: FontFaceFreeType.h:67
void FromHCM(float h, float c, float m)
Calculate and set RGB values. Convenience function used by FromHSV and FromHSL to avoid code duplicat...
Definition: Color.cpp:304
2D distance constraint component.
Definition: ConstraintDistance2D.h:31
bool IsAdded(const String &tag) const
Return true if renderpath or command with given tag exists.
Definition: RenderPath.cpp:395
bool SetSize(unsigned indexCount, bool largeIndices, bool dynamic=false)
Set size and vertex elements and dynamic mode. Previous data will be lost.
Definition: IndexBuffer.cpp:76
unsigned Read(void *dest, unsigned size) override
Read bytes from the memory area. Return number of bytes actually read.
Definition: MemoryBuffer.cpp:62
float lodBias_
LOD bias.
Definition: Terrain.h:313
void SetDampingRatio(float dampingRatio)
Set damping ratio.
Definition: ConstraintWeld2D.cpp:82
void SetLayoutFlexScale(const Vector2 &scale)
Set layout flex scale.
Definition: UIElement.cpp:1072
UniquePtr< btCollisionShape > shape_
Bullet collision shape.
Definition: CollisionShape.h:298
ShaderVariation * pixelShader_
Pixel shader in use.
Definition: Graphics.h:787
Material * GetMaterial(unsigned index=0) const
Return material by geometry index.
Definition: CustomGeometry.cpp:723
bool WriteVLE(unsigned value)
Write a variable-length encoded unsigned integer, which can use 29 bits maximum.
Definition: Serializer.cpp:365
bool HasEventHandler(StringHash eventType) const override
Return whether has subscribed to an event.
Definition: ScriptFile.cpp:273
void Commit()
Mark for bounding box and vertex buffer update. Call after modifying the billboards.
Definition: BillboardSet.cpp:346
Script dictionary class.
Definition: Addons.h:194
unsigned GetNumMorphs() const
Return number of vertex morphs.
Definition: Model.h:191
virtual bool Seek(unsigned sample_number)
Seek to sample number. Return true on success. Need not be implemented by all streams.
Definition: SoundStream.cpp:40
static const VariantVector emptyVariantVector
Empty variant vector.
Definition: Variant.h:1391
void UpdateWheelTransform(int wheel, bool interpolated)
Update transform for particular wheel.
Definition: RaycastVehicle.cpp:410
float mobileShadowBiasAdd_
Mobile platform shadow depth bias addition.
Definition: Renderer.h:570
LoopMode2D loopMode_
Loop mode.
Definition: AnimatedSprite2D.h:136
void OnAttributeAnimationRemoved() override
Handle attribute animation removed.
Definition: Component.cpp:232
const PODVector< unsigned char > & GetNetParentAttr() const
Return network parent attribute.
Definition: Node.cpp:1524
void DrawCircle(const b2Vec2 ¢er, float32 radius, const b2Color &color) override
Draw a circle.
Definition: PhysicsWorld2D.cpp:212
void SetSearchPackagesFirst(bool value)
Define whether when getting resources should check package files or directories first....
Definition: ResourceCache.h:129
void RemoveManualDrawable(Drawable *drawable)
Remove a manually added drawable.
Definition: Octree.cpp:485
StringHash hash_
Animation resource name hash.
Definition: AnimationController.h:58
Vector< SharedPtr< ShaderVariation > > vertexShaders_
Vertex shaders.
Definition: Technique.h:178
HashSet()
Construct empty.
Definition: HashSet.h:175
bool recursive_
Recursive flag.
Definition: Navigable.h:51
rcPolyMesh * polyMesh_
Recast poly mesh.
Definition: NavBuildData.h:97
bool roundStroke_
Text effect stroke rounding flag.
Definition: Text.h:245
void OnSceneSet(Scene *scene) override
Handle node being assigned.
Definition: RibbonTrail.cpp:420
ConstantBuffer * bufferPtr_
Constant buffer pointer. Defined only in shader programs.
Definition: ShaderVariation.h:77
virtual void OnMarkedDirty(Node *node)
Handle scene node transform dirtied.
Definition: Component.cpp:246
void * GetReadOnlyView() const
Return Direct3D11 read-only depth-stencil view. May be null if not applicable. Not valid on OpenGL.
Definition: RenderSurface.h:111
SharedPtr< VertexBuffer > debugVertexBuffer_
UI debug geometry vertex buffer.
Definition: UI.h:371
static void RegisterObject(Context *context)
Register object factory.
Definition: BillboardSet.cpp:110
void SetMaxForce(float maxForce)
Set max force.
Definition: ConstraintMotor2D.cpp:89
Vector(const T *data, unsigned size)
Construct with initial data.
Definition: Vector.h:71
virtual void OnSceneSet(Scene *scene)
Handle scene being assigned. This may happen several times during the component's lifetime....
Definition: Component.cpp:242
void SetEmitting(bool enable)
Set whether should be emitting. If the state was changed, also resets the emission period timer.
Definition: ParticleEmitter.cpp:293
void FreeNode(Node *node)
Free a node.
Definition: HashSet.h:618
bool enableAnchor_
Use min/max anchor & min/max offset for position & size instead of setting explicitly.
Definition: UIElement.h:787
PListValueType type_
Type.
Definition: PListFile.h:128
bool nodeIDsDirty_
Whether nodes have been manipulated by the API and node ID attribute should be refreshed.
Definition: StaticModelGroup.h:96
ResourceRef GetSoundAttr() const
Return sound attribute.
Definition: SoundSource.cpp:498
static ResourceRef SaveToResourceRef(Sprite2D *sprite)
Save sprite to ResourceRef.
Definition: Sprite2D.cpp:190
VariantMap identity_
Identity map.
Definition: Connection.h:254
bool Merge(const UIBatch &batch)
Merge with another batch.
Definition: UIBatch.cpp:405
HashMap< String, SharedPtr< AttributeAnimationInfo > > attributeAnimationInfos_
Attribute animation infos.
Definition: Animatable.h:155
Spatial timeline key.
Definition: SpriterData2D.h:262
TerrainPatch * GetEastPatch() const
Return east neighbor patch.
Definition: TerrainPatch.h:98
bool SetString(const String &name, const String &value)
Set a string attribute.
Definition: XMLElement.cpp:407
bool NotNull() const
Return whether refers to an element or an XPath node.
Definition: XMLElement.cpp:568
BoundingBox boundingBox_
Bounding box.
Definition: Model.h:206
bool worldBoundingBoxDirty_
Bounding box dirty flag.
Definition: Drawable.h:337
void PreloadResourcesJSON(const JSONValue &value)
Preload resources from a JSON scene or object prefab file.
Definition: Scene.cpp:1447
rcHeightfield * heightField_
Recast heightfield.
Definition: NavBuildData.h:80
bool ResizeInstancingBuffer(unsigned numInstances)
Ensure sufficient size of the instancing vertex buffer. Return true if successful.
Definition: Renderer.cpp:1346
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: Renderer2D.cpp:129
PODVector< SoundSource * > soundSources_
Sound sources.
Definition: Audio.h:149
Scene * GetScene() const
Return scene.
Definition: View.h:136
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Constraint2D.cpp:74
void SetScene(Scene *scene)
Associate the material with a scene to ensure that shader parameter animation happens in sync with sc...
Definition: Material.cpp:1115
bool completing_
Completing work in the main thread flag.
Definition: WorkQueue.h:146
unsigned char * GetModifiableData()
Return non-const data.
Definition: VectorBuffer.h:65
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: TerrainPatch.cpp:273
static const String EMPTY
Empty string.
Definition: Str.h:512
float operator[](unsigned index) const
Return const value by index.
Definition: Vector4.h:165
void SetVSMShadowParameters(float minVariance, float lightBleedingReduction)
Set shadow parameters when VSM is used, they help to reduce light bleeding. LightBleeding must be in ...
Definition: Renderer.cpp:419
bool IsSet(unsigned index) const
Return if bit is set.
Definition: ReplicationState.h:99
T Ceil(T x)
Round value up.
Definition: MathDefs.h:228
void StaticCast(const WeakArrayPtr< U > &rhs)
Perform a static cast from a weak array pointer of another type.
Definition: ArrayPtr.h:349
~LogicComponent() override
Destruct.
const Color & GetBorderColor() const
Return border color.
Definition: Texture.h:103
bool IsEnabled() const
Return whether reacts to input.
Definition: UIElement.h:511
HashMap< int, VectorBuffer > outgoingBuffer_
Outgoing packet buffer which can contain multiple messages.
Definition: Connection.h:349
Script file resource.
Definition: ScriptFile.h:46
static const void * globalParameterSources[MAX_SHADER_PARAMETER_GROUPS]
Remembered global shader parameter sources for constant buffer mode.
Definition: OGLShaderProgram.h:114
IntVector2 GetTotalGlyphOffset(float pointSize) const
Return the total effective offset for a point size.
Definition: Font.cpp:181
void LoadJSONFile(const String &name, const String &language=String::EMPTY)
Load strings from JSONFile. The file should be UTF8 without BOM.
Definition: Localization.cpp:155
bool sixteenBit_
Sixteen bit flag.
Definition: SoundStream.h:74
bool BeginFrame()
Begin frame rendering. Return true if device available and can render.
Definition: OGLGraphics.cpp:587
virtual void Setup()
Setup before engine initialization. This is a chance to eg. modify the engine parameters....
Definition: Application.h:44
Map instruction.
Definition: SpriterData2D.h:132
float ascender_
Ascender.
Definition: FontFaceFreeType.h:69
const Vector2 & GetLowLimit() const
Return low limit.
Definition: Constraint.h:134
Matrix3(float v00, float v01, float v02, float v10, float v11, float v12, float v20, float v21, float v22) noexcept
Construct from values.
Definition: Matrix3.h:52
Quaternion rotation_
Bone rotation.
Definition: Animation.h:60
void SetIKSolver(IKSolver *solver)
Intended to be used only by IKSolver.
Definition: IKEffector.cpp:343
void Push(const JSONValue &value)
Add JSON value at end.
Definition: JSONValue.cpp:202
void draw3dText(const btVector3 &location, const char *textString) override
Draw physics debug 3D text. Not implemented.
Definition: PhysicsWorld.cpp:252
AttributeAnimationInfo * GetAttributeAnimationInfo(const String &name) const
Return attribute animation info.
Definition: Animatable.cpp:538
void SetPixelInt(int x, int y, unsigned uintColor)
Set a 2D pixel with an integer color. R component is in the 8 lowest bits.
Definition: Image.cpp:931
float GetMaxNetworkAngularVelocity() const
Return maximum angular velocity for network replication.
Definition: PhysicsWorld.h:239
Ogg Vorbis sound stream.
Definition: OggVorbisSoundStream.h:34
SharedPtr< File > file_
File for binary mode.
Definition: Scene.h:60
void Erase(unsigned pos, unsigned length=1)
Erase a substring.
Definition: Str.cpp:392
float GetAxisPosition(unsigned index) const
Return axis position.
Definition: Input.h:103
Vector2 center_
Center.
Definition: CollisionCircle2D.h:67
float GetMargin() const
Return collision margin.
Definition: CollisionShape.h:233
float GetRadius() const
Get the agent's radius.
Definition: CrowdAgent.h:157
static String GetTextureUnitName(TextureUnit unit)
Return name for texture unit.
Definition: Material.cpp:1232
unsigned rawVertexSize_
Raw vertex data override size.
Definition: Geometry.h:139
float distance_
Current distance to camera.
Definition: Drawable.h:363
void RemoveChild(UIElement *element, unsigned index=0)
Remove a child element. Starting search at specified index if provided.
Definition: UIElement.cpp:1343
CompareMode
Depth or stencil compare mode.
Definition: GraphicsDefs.h:85
ConstantBufferMap allConstantBuffers_
Constant buffer search map.
Definition: OGLGraphicsImpl.h:142
const Color & GetSelectionColor() const
Return selection background color.
Definition: UISelectable.h:53
unsigned char adaptiveRings
adaptive
Definition: CrowdManager.h:54
2D particle emitter component.
Definition: ParticleEmitter2D.h:76
static void RegisterObject(Context *context)
Register object factory.
Definition: ProgressBar.cpp:59
void ResetBuffers()
Remove all occlusion and screen buffers.
Definition: Renderer.cpp:1905
void SetModalFrameColor(const Color &color)
Set modal frame color.
Definition: Window.cpp:305
ResourceRefList(StringHash type)
Construct with type only.
Definition: Variant.h:143
void SetFlipY(bool flipY)
Set flip Y.
Definition: StaticSprite2D.cpp:147
bool specularLighting_
Specular lighting flag.
Definition: Renderer.h:588
const float * Data() const
Return float data.
Definition: Rect.h:232
unsigned GetLightMask() const
Return light mask.
Definition: Drawable.h:198
void SetTimeStepSmoothing(int frames)
Set how many frames to average for timestep smoothing. Default is 2. 1 disables smoothing.
Definition: Engine.cpp:558
float tangentialAcceleration_
Tangential acceleration.
Definition: ParticleEmitter2D.h:62
float rotatePerSecondVariance_
Rotate per second variance.
Definition: ParticleEffect2D.h:318
WeakPtr< NavigationMesh > navigationMesh_
NavigationMesh for which the crowd was created.
Definition: CrowdManager.h:185
String pixelShaderDefines_
Pixel shader defines.
Definition: Material.h:295
static const IntVector2 LEFT
(-1,0) vector.
Definition: Vector2.h:163
void SetVertexAttribDivisor(unsigned location, unsigned divisor)
Set vertex attrib divisor. No-op if unsupported. Used only on OpenGL.
Definition: OGLGraphics.cpp:3366
Convex hull geometry data.
Definition: CollisionShape.h:104
unsigned numShadowCameras_
Number of temporary shadow cameras in use.
Definition: Renderer.h:576
bool networkUpdate_
Network update queued flag.
Definition: Node.h:679
Node * Head() const
Return the head node.
Definition: HashSet.h:519
void SetOtherAxis(const Vector3 &axis)
Set constraint rotation relative to the other body by specifying the axis.
Definition: Constraint.cpp:239
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Render debug information.
Definition: Obstacle.cpp:150
Matrix3x4 transform_
Transform relative to the navigation mesh root node.
Definition: NavigationMesh.h:66
void SetShadowDistance(float distance)
Set shadow draw distance for patches.
Definition: Terrain.cpp:392
TileMap2D(Context *context)
Construct.
Definition: TileMap2D.cpp:42
Variant(RefCounted *value)
Construct from a RefCounted pointer. The object will be stored internally in a WeakPtr so that its ex...
Definition: Variant.h:493
void SetMinAngle(float angle)
Set minimal angle between billboard normal and look-at direction.
Definition: BillboardSet.cpp:334
RenderSurfaceUpdateMode updateMode_
Update mode for viewports.
Definition: RenderSurface.h:154
void SetMovable(bool enable)
Set whether can be moved.
Definition: Window.cpp:252
UI rendering draw call.
Definition: UIBatch.h:42
bool enabled_
Enabled flag.
Definition: RenderPath.h:176
float compressedLength_
Compressed sound length.
Definition: Sound.h:134
Quaternion Rotation() const
Return the rotation part.
Definition: Matrix4.h:558
unsigned char blendIndices_[4]
Blend indices.
Definition: DecalSet.h:72
static void RegisterObject(Context *context)
Register object factory.
Definition: Image.cpp:261
String ToString() const
Return as string.
Definition: Matrix3x4.cpp:83
void SetAttributeAnimationWrapMode(const String &name, WrapMode wrapMode)
Set attribute animation wrap mode.
Definition: Animatable.cpp:392
void ClearBones()
Clear bones.
Definition: Skeleton.cpp:123
Base class for intrusively reference-counted objects. These are noncopyable and non-assignable.
Definition: RefCounted.h:59
@ IM_SPLINE
Cardinal spline interpolation, default tension value is 0.5f. For more information please refer to ht...
Definition: ValueAnimation.h:44
Vector3 normal_
Normal.
Definition: DecalSet.h:64
virtual bool SaveFile(const String &fileName) const
Save resource to file.
Definition: Resource.cpp:93
@ AM_NET
Attribute used for network replication.
Definition: Attribute.h:41
VariantMap engineParameters_
Engine parameters map.
Definition: Application.h:64
Vector2 center_
Center.
Definition: CollisionBox2D.h:74
Mutex & mutex_
Mutex reference.
Definition: Mutex.h:71
Node * Next() const
Return next node.
Definition: List.h:51
void SetRange(float range)
Set range.
Definition: Light.cpp:326
unsigned GetMaxIndices() const
Return maximum number of decal vertex indices.
Definition: DecalSet.h:161
static void RegisterObject(Context *context)
Register object factory.
Definition: RigidBody.cpp:94
unsigned frameCount_
Calls on the previous frame.
Definition: Profiler.h:156
void SetRotationDecay(float decay)
A factor with which to control the target rotation influence of the next segments down the chain.
Definition: IKEffector.cpp:206
Rect uv_
UV coordinates.
Definition: ParticleEffect.h:96
TileMapObject2D * GetObject(unsigned index) const
Return tile map object (for object group only).
Definition: TileMapLayer2D.cpp:311
void Reserve(unsigned newCapacity)
Set new capacity.
Definition: Vector.h:1065
BoundingBox bounds_
Area bounding box.
Definition: NavBuildData.h:48
void HandleLuaScriptEvent(StringHash eventType, VariantMap &eventData)
Handle script event in Lua script.
Definition: LuaScriptEventInvoker.cpp:58
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: PhysicsWorld2D.cpp:705
Algorithm GetAlgorithm() const
Returns the active algorithm.
Definition: IKSolver.cpp:108
void StoreShaders(ShaderVariation *vs, ShaderVariation *ps)
Collect a shader combination. Called by Graphics when shaders have been set.
Definition: ShaderPrecache.cpp:78
AnimationStateTrack()
Construct with defaults.
Definition: AnimationState.cpp:36
void ExceptionCallback(asIScriptContext *context)
Handle a script exception.
Definition: Script.cpp:256
Vector3 Project(const Vector3 &point) const
Project a point on the ray.
Definition: Ray.h:69
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: BillboardSet.cpp:225
const Vector< AttributeInfo > * GetNetworkAttributes(StringHash type) const
Return network replication attribute descriptions for an object type, or null if none defined.
Definition: Context.h:177
HashNodeBase()
Construct.
Definition: HashBase.h:42
float GetDepthConstantBias() const
Return depth constant bias.
Definition: Graphics.h:513
float GetDuration() const
Return duration.
Definition: ParticleEffect2D.h:203
void PrepareNetworkUpdate()
Prepare network update by comparing attributes and marking replication states dirty as necessary.
Definition: Node.cpp:1685
static void ClearGlobalParameterSource(ShaderParameterGroup group)
Clear a global parameter source when constant buffers change.
Definition: OGLShaderProgram.cpp:415
void CleanupGeometryCache()
Clean up the geometry cache.
Definition: PhysicsWorld.cpp:771
Vector3 Scale() const
Return the scaling part.
Definition: Matrix4.h:561
IntVector2 dragBeginCursor_
Mouse position at drag begin.
Definition: Window.h:153
void PrepareViewRender()
Prepare for rendering of a new view.
Definition: Renderer.cpp:1526
Viewport(Context *context)
Construct with defaults.
Definition: Viewport.cpp:39
SharedPtr< Node > rootNode_
Root node for tile map layer.
Definition: TileMap2D.h:83
String GetUserDocumentsDir() const
Return the user documents directory.
Definition: FileSystem.cpp:723
Vector< SharedPtr< IndexBuffer > > indexBuffers_
Index buffers.
Definition: Model.h:212
SharedPtr< Text > memoryText_
Memory stats text.
Definition: DebugHud.h:121
Sprite2D * GetTileSprite() const
Return tile sprite.
Definition: TileMapDefs2D.cpp:203
XPathQuery()
Construct empty.
Tile map object.
Definition: TileMapDefs2D.h:165
static unsigned GetPassIndex(const String &passName)
Return a pass type index by name. Allocate new if not used yet.
Definition: Technique.cpp:529
unsigned color_
Color.
Definition: DebugRenderer.h:87
const PODVector< unsigned > & GetSelections() const
Return all selected indices.
Definition: ListView.h:127
void UpdateCollisions()
Refresh collisions only without updating dynamics.
Definition: PhysicsWorld.cpp:308
T * Buffer() const
Return the buffer with right type.
Definition: Vector.h:540
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Image.cpp:266
void OnSceneLoadFailed()
Handle scene load failure on the server or client.
Definition: Connection.cpp:1574
WeakPtr< Node > endPoint_
Endpoint node.
Definition: OffMeshConnection.h:78
UI element which renders a 3D scene.
Definition: View3D.h:37
unsigned GetNumNetworkComponents() const
Return number of non-local components.
Definition: Node.cpp:1335
bool checked_
Current checked state.
Definition: CheckBox.h:68
float GetOccluderSizeThreshold() const
Return occluder screen size threshold.
Definition: Renderer.h:328
const JSONObject & GetObject() const
Return JSON object value.
Definition: JSONValue.h:208
bool SetAttribute(unsigned index, const Variant &value)
Set attribute by index. Return true if successfully set.
Definition: Serializable.cpp:588
void SetNetAnimationsAttr(const PODVector< unsigned char > &value)
Set animations attribute for network replication.
Definition: AnimationController.cpp:612
TerrainPatch * GetNeighborPatch(int x, int z) const
Return patch by patch coordinates including neighbor terrains.
Definition: Terrain.cpp:541
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Drawable2D.cpp:125
unsigned colorIndex_
Current color animation index.
Definition: ParticleEmitter.h:48
~DynamicNavigationMesh() override
Destructor.
Definition: DynamicNavigationMesh.cpp:223
HashBase()
Construct.
Definition: HashBase.h:109
const PODVector< Vector3 > & GetGeometryCenters() const
Return geometry center points.
Definition: Model.h:173
void RemoveDrawable(Drawable2D *drawable)
Remove Drawable2D.
Definition: Renderer2D.cpp:235
void Ban()
Ban this connections IP address.
Definition: Connection.cpp:520
bool Erase(T *element)
Erase an element. Return true if successful.
Definition: LinkedList.h:119
WeakPtr< Terrain > east_
East neighbor terrain.
Definition: Terrain.h:265
void SetHorizontalAlignment(HorizontalAlignment align)
Set horizontal alignment.
Definition: UIElement.cpp:676
void PrecalculateLevels()
Precalculate the mip levels. Used by asynchronous texture loading.
Definition: Image.cpp:2289
void SetVar(StringHash key, const Variant &value)
Set a user variable.
Definition: UIElement.cpp:1439
bool hardwareShadowSupport_
Hardware shadow map depth compare support flag.
Definition: Graphics.h:753
int indent_
Horizontal indentation.
Definition: UIElement.h:734
dtCrowd * GetCrowd() const
Get the internal detour crowd component.
Definition: CrowdManager.h:172
LuaScriptEventInvoker(Context *context)
Construct.
Definition: LuaScriptEventInvoker.cpp:34
virtual PODVector< unsigned char > GetNavigationDataAttr() const
Return navigation data attribute.
Definition: NavigationMesh.cpp:927
void SetAnimationAttr(const String &name)
Set animation by name.
Definition: AnimatedSprite2D.cpp:227
Vector< SharedPtr< Node > > nodes_
Tile node or image nodes.
Definition: TileMapLayer2D.h:127
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: DecalSet.h:223
void SetAsyncLoadState(AsyncLoadState newState)
Set the asynchronous loading state. Called by ResourceCache. Resources in the middle of asynchronous ...
Definition: Resource.cpp:115
T Clamp(T value, T min, T max)
Clamp a number to a range.
Definition: MathDefs.h:120
void SetAngularRestThreshold(float threshold)
Set angular velocity deactivation threshold.
Definition: RigidBody.cpp:356
const Vector2 & GetMinParticleSize() const
Return particle minimum size.
Definition: ParticleEffect.h:281
bool SetFontSize(float size)
Set font size only while retaining the existing font. Return true if successful.
Definition: Text3D.cpp:212
void SetMaxLength(unsigned length)
Set maximum text length. 0 for unlimited.
Definition: LineEdit.cpp:511
SharedPtr< Texture2D > defaultLightRamp_
Default range attenuation texture.
Definition: Renderer.h:492
unsigned GetMaxLights() const
Return maximum number of per-pixel lights.
Definition: Drawable.h:207
Vector2 size_
Size.
Definition: Text.h:52
bool GetFlipY() const
Return flip Y.
Definition: StaticSprite2D.h:92
E Enum
Enum type.
Definition: FlagSet.h:50
char * buffer_
String buffer, point to &endZero if buffer is not allocated.
Definition: Str.h:547
TileMapInfo2D info_
Tile map information.
Definition: TileMap2D.h:81
const Vector2 & GetAnchor() const
Return anchor.
Definition: ConstraintWeld2D.h:51
void ReleaseFaces()
Release font faces and recreate them next time when requested. Called when font textures lost or glob...
Definition: Font.cpp:187
unsigned offset_
Offset from the beginning.
Definition: PackageFile.h:34
void ExecuteRenderPathCommands()
Execute render commands.
Definition: View.cpp:1450
void SetProjectionOffset(const Vector2 &offset)
Set projection offset. It needs to be calculated as (offset in pixels) / (viewport dimensions).
Definition: Camera.cpp:209
void SetBoundingBox(const BoundingBox &box)
Set local-space bounding box.
Definition: TerrainPatch.cpp:232
Matrix3 Transpose() const
Return transposed.
Definition: Matrix3.h:213
View * GetView() const
Return the internal rendering structure. May be null if the viewport has not been rendered yet.
Definition: Viewport.cpp:132
const Vector2 & GetAnchor() const
Return anchor.
Definition: ConstraintPrismatic2D.h:61
Matrix3 RotationMatrix() const
Return the rotation matrix with scaling removed.
Definition: Matrix3x4.h:591
KeyValue & operator*() const
Dereference the pair.
Definition: HashMap.h:152
TileMapInfo2D info_
Tile map information.
Definition: TmxFile2D.h:218
bool GetDrawAabb() const
Return draw aabb.
Definition: PhysicsWorld2D.h:171
unsigned GetNumBones() const
Return number of bones.
Definition: Skeleton.h:114
Vector4(const float *data) noexcept
Construct from a float array.
Definition: Vector4.h:65
FontType GetFontType() const
Return font type.
Definition: Font.h:73
void SetOwnerConstraint(Constraint2D *constraint)
Set owner constraint.
Definition: ConstraintGear2D.cpp:53
void PostUpdate(float timeStep) override
Perform variable step post-update.
Definition: RaycastVehicle.cpp:303
Base class for 2D visible components.
Definition: Drawable2D.h:69
bool OnDragDropFinish(UIElement *source) override
React to drag and drop finish. Return true to signal that the drop was accepted.
Definition: LineEdit.cpp:178
Object animation class, an object animation include one or more attribute animations and theirs wrap ...
Definition: ObjectAnimation.h:37
Iterator DoEraseElements(unsigned pos, unsigned count)
Erase elements from the vector.
Definition: Vector.h:663
Sprite(Context *context)
Construct.
Definition: Sprite.cpp:40
bool sorted_
Tails sorted flag.
Definition: RibbonTrail.h:182
void Initialize(const BoundingBox &box)
Initialize bounding box.
Definition: Octree.cpp:221
VariantValue()
Construct uninitialized.
Definition: Variant.h:314
IntVector2 dragBeginSize_
Original size at drag begin.
Definition: Window.h:157
static const unsigned MIN_CAPACITY
Initial dynamic allocation size.
Definition: Str.h:510
bool HasTag(const String &tag) const
Return whether has a specific tag.
Definition: Node.cpp:1378
Vertex element description for arbitrary vertex declarations.
Definition: GraphicsDefs.h:183
void FindPath(PODVector< Vector3 > &dest, const Vector3 &start, const Vector3 &end, int queryFilterType)
Find a path between world space points using the crowd initialized query extent (based on maxAgentRad...
Definition: CrowdManager.cpp:405
void NodeRemoved(Node *node)
Node removed. Remove from ID map.
Definition: Scene.cpp:979
float GetDampingForce() const
Return particle velocity damping force.
Definition: ParticleEffect.h:266
int GetDragBeginDistance() const
Return UI drag start event distance threshold in pixels.
Definition: UI.h:182
void SetTraversalMode(TraversalMode traversalMode)
Set traversal mode for rendering. The default traversal mode is TM_BREADTH_FIRST for non-root element...
Definition: UIElement.cpp:1449
Vector< WeakPtr< TerrainPatch > > patches_
Terrain patches.
Definition: Terrain.h:255
void SetShaderCacheDir(const String &path)
Set shader cache directory, Direct3D only. This can either be an absolute path or a path within the r...
Definition: Graphics.cpp:378
void SetModel(Model *model, bool createBones=true)
Set model.
Definition: AnimatedModel.cpp:332
unsigned char setTimeRev_
Set time command revision.
Definition: AnimationController.h:76
void FindPath(PODVector< Vector3 > &dest, const Vector3 &start, const Vector3 &end, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr)
Find a path between world space points. Return non-empty list of points if successful....
Definition: NavigationMesh.cpp:653
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintMotor2D.cpp:46
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CollisionShape.cpp:503
Vector4 ToVector4() const
Return as a vector.
Definition: Plane.h:115
void ToggleEnabled(const String &tag)
Toggle enabled state of commands and rendertargets by tag.
Definition: RenderPath.cpp:412
StringVector ReadStringVector()
Read a string vector.
Definition: Deserializer.cpp:406
JSON value class.
Definition: JSONValue.h:74
bool SetMatrix3(const String &name, const Matrix3 &value)
Set a Matrix3 attribute.
Definition: XMLElement.cpp:548
@ TM_DEPTH_FIRST
Traverse through each child and its children immediately after in sequence.
Definition: UIElement.h:101
void Clip(const Rect &rect)
Clip with another rect.
Definition: Rect.cpp:88
float GetMinZ() const
Return the minimum view-space depth.
Definition: Drawable.h:284
void Remove(Object *object)
Remove receiver. Leave holes during send, which requires later cleanup.
Definition: Context.cpp:86
WeakArrayPtr(const WeakArrayPtr< T > &rhs)
Copy-construct from another weak array pointer.
Definition: ArrayPtr.h:242
void AttemptNATPunchtrough(const String &guid, Scene *scene, const VariantMap &identity=Variant::emptyVariantMap)
Attempt to connect to NAT server.
Definition: Network.cpp:492
void SetTexture(TextureUnit unit, Texture *texture)
Set texture.
Definition: Material.cpp:1032
unsigned GetSelection() const
Return selection index, or M_MAX_UNSIGNED if none selected.
Definition: DropDownList.cpp:213
PODVector< int > indices_
Triangle indices from geometries.
Definition: NavBuildData.h:66
Vector2 size_
Absolute size or multiplier.
Definition: RenderPath.h:80
void SetOtherBodyGroundAnchor(const Vector2 &groundAnchor)
Set other body ground anchor point.
Definition: ConstraintPulley2D.cpp:75
bool textSelectable_
Text selectable flag.
Definition: LineEdit.h:154
unsigned GetNumVertexBuffers() const
Return number of vertex buffers.
Definition: Geometry.h:74
float GetMass() const
Return mass.
Definition: CollisionShape2D.cpp:255
VertexElementSemantic semantic_
Semantic of element.
Definition: GraphicsDefs.h:214
Color(float r, float g, float b) noexcept
Construct from RGB values and set alpha fully opaque.
Definition: Color.h:75
Vector< WeakPtr< NavArea > > areas_
NavAreas for this NavMesh.
Definition: NavigationMesh.h:354
static JSONNumberType GetNumberTypeFromName(const String &typeName)
Return a number type from name; NaN if unrecognized.
Definition: JSONValue.cpp:643
String GetAttributeUpper(const String &name) const
Return attribute in lowercase, or empty if missing.
Definition: XMLElement.cpp:726
FillMode fillMode_
Fill mode.
Definition: Camera.h:266
const TmxImageLayer2D * imageLayer_
Image layer.
Definition: TileMapLayer2D.h:121
void SetClipPlaneAttr(const Vector4 &value)
Set clipping plane attribute.
Definition: Camera.cpp:621
BlendMode GetBlendMode() const
Return blending mode.
Definition: Graphics.h:501
void * aux_
Auxiliary data pointer.
Definition: WorkQueue.h:55
bool SetWeight(const String &name, float weight)
Set animation weight. Return true on success.
Definition: AnimationController.cpp:359
const Vector2 & GetScaledGlyphOffset() const
Return point size scaled position adjustment for glyphs.
Definition: Font.h:82
Polyhedron(const Vector< PODVector< Vector3 > > &faces)
Construct from a list of faces.
Definition: Polyhedron.h:52
void SetViewportIndex(unsigned int index)
Set index of viewport to be used for screen coordinate translation.
Definition: UIComponent.cpp:241
Vector< String > languages_
Language names.
Definition: Localization.h:71
Scene * GetScene() const
Return scene.
Definition: Viewport.cpp:117
StringHash eventType_
Event type.
Definition: Object.h:291
bool CreateRenderBuffer(unsigned width, unsigned height, unsigned format, int multiSample)
Create renderbuffer that cannot be sampled as a texture. Only used on OpenGL.
Definition: OGLRenderSurface.cpp:52
bool compressed_
Compressed flag.
Definition: Sound.h:132
unsigned long long GetBufferHash(unsigned streamIndex)
Return buffer hash for building vertex declarations. Used internally.
Definition: VertexBuffer.h:112
const IntRect & GetImageRect() const
Return image rectangle.
Definition: Sprite.h:98
void AddTags(const String &tags, char separator=';')
Add tags with the specified separator (; by default).
Definition: Node.cpp:378
PODVector< unsigned > layerMemoryUse_
Memory use per layer.
Definition: Texture2DArray.h:90
Color finishColor_
Finish color.
Definition: ParticleEffect2D.h:290
unsigned Read(void *dest, unsigned size) override
Read response data from the HTTP connection and return number of bytes actually read....
Definition: HttpRequest.cpp:209
unsigned enabledVertexAttributes_
Enabled vertex attributes bitmask.
Definition: OGLGraphicsImpl.h:118
void SetPositionAttr(int value)
Set sound position attribute.
Definition: SoundSource.cpp:492
bool sRGBWriteSupport_
sRGB conversion on write support flag.
Definition: Graphics.h:759
void SetSoundAttr(const ResourceRef &value)
Set sound attribute.
Definition: SoundSource.cpp:466
float speedVariance_
Speed variance.
Definition: ParticleEffect2D.h:266
bool heightFog_
Height fog mode flag.
Definition: Zone.h:140
HashSet< Pair< ShaderVariation *, ShaderVariation * > > usedPtrCombinations_
Already encountered shader combinations, pointer version for fast queries.
Definition: ShaderPrecache.h:58
bool IsVisible() const
Return whether is visible.
Definition: Console.cpp:290
void Replace(char replaceThis, char replaceWith, bool caseSensitive=true)
Replace all occurrences of a character.
Definition: Str.cpp:230
~Audio() override
Destruct. Terminate the audio thread and free the audio buffer.
Definition: Audio.cpp:69
void AddReplicationState(ComponentReplicationState *state)
Add a replication state that is tracking this component.
Definition: Component.cpp:160
bool scaled_
Scale affects billboard scale flag.
Definition: BillboardSet.h:164
unsigned writePosition_
Read buffer write cursor.
Definition: HttpRequest.h:105
@ TARGET_ROTATIONS
When enabled, the effector will try to match the target's rotation as well as the effectors position....
Definition: IKSolver.h:85
virtual void OnAttributeAnimationRemoved()=0
Handle attribute animation removed.
void SetZoneMask(unsigned mask)
Set zone mask. Is and'ed with zone's zone mask to see if the object should belong to the zone.
Definition: Drawable.cpp:209
bool GetInstancingSupport() const
Return whether hardware instancing is supported.
Definition: Graphics.h:417
bool timeStamp_
Timestamp log messages flag.
Definition: Log.h:126
const Variant & GetShaderParameter(const String &name) const
Return shader parameter.
Definition: RenderPath.cpp:293
Shader parameter definition.
Definition: ShaderVariation.h:38
virtual void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results)
Process octree raycast. May be called from a worker thread.
Definition: Drawable.cpp:118
unsigned gid_
Gid.
Definition: TileMapDefs2D.h:157
virtual void OnDrawOrderChanged()=0
Handle draw order changed.
bool IsValid() const
Return animation is valid.
Definition: ValueAnimation.cpp:334
unsigned historyRows_
Command history maximum rows.
Definition: Console.h:168
void SetPosition(const Vector3 &position)
Set the observer position for interest management, to be sent to the server.
Definition: Connection.cpp:230
ConstraintPulley2D(Context *context)
Construct.
Definition: ConstraintPulley2D.cpp:37
unsigned frequency_
Default frequency.
Definition: SoundStream.h:70
const PListValueMap & GetRoot() const
Return root.
Definition: PListFile.h:158
void UnregisterAllVars()
Clear all registered node user variable hash reverse mappings.
Definition: Scene.cpp:701
bool IsTemporary() const
Return whether is temporary.
Definition: Serializable.h:125
void SetSpriteTextureEdgeOffset(float offset)
Set texture edge offset for all sprites, in pixels.
Definition: TmxFile2D.cpp:590
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: Renderer2D.h:117
void SetVerticesAttr(const PODVector< unsigned char > &value)
Set vertices attribute.
Definition: CollisionChain2D.cpp:95
void RecreateFixture()
Recreate fixture.
Definition: CollisionBox2D.cpp:110
CullMode shadowCullMode_
Culling mode for shadow rendering.
Definition: Material.h:299
bool AppendChild(XMLElement element, bool asCopy=false)
Append element. If asCopy is set to true then original element is copied and appended,...
Definition: XMLElement.cpp:127
void SetVertices(const Vector2 &vertex1, const Vector2 &vertex2)
Set vertices.
Definition: CollisionEdge2D.cpp:71
Vector< Variant > previousValues_
Previous network attribute values.
Definition: ReplicationState.h:128
const String & GetTitle() const
Return window title.
Definition: FileSelector.cpp:256
WeakPtr< Scene > scene_
Extra weak pointer to scene to allow for cleanup in case the world is destroyed before other componen...
Definition: PhysicsWorld2D.h:229
float GetOpacity() const
Return opacity.
Definition: UIElement.h:484
PODVector< unsigned > morphRangeCounts_
Vertex buffer morph range vertex count.
Definition: Model.h:224
void Push(const Vector< T > &vector)
Add another vector at the end.
Definition: Vector.h:275
Context * GetContext() const
Return execution context.
Definition: Object.h:144
Quaternion Normalized() const
Return normalized to unit length.
Definition: Quaternion.h:339
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: RibbonTrail.cpp:128
String ToString() const
Return as string.
Definition: Matrix2.cpp:53
static const IntVector3 FORWARD_UP_RIGHT
(2, 1, 0) coordinate system.
Definition: RaycastVehicle.h:182
unsigned totalNodes_
Total root-level nodes.
Definition: Scene.h:83
float offsetY_
Glyph Y offset from origin.
Definition: FontFace.h:54
bool GetUsedVertexRange(unsigned start, unsigned count, unsigned &minVertex, unsigned &vertexCount)
Return used vertex range from index range.
Definition: IndexBuffer.cpp:92
BoneCollisionShapeFlags collisionMask_
Supported collision types.
Definition: Skeleton.h:76
Matrix3(const float *data) noexcept
Construct from a float array.
Definition: Matrix3.h:68
~Variant()
Destruct.
Definition: Variant.h:554
void SetPosition2D(const Vector2 &position)
Set position in parent space (for Urho2D).
Definition: Node.h:136
2D polygon collision component.
Definition: CollisionPolygon2D.h:31
void SetTechnique(unsigned index, Technique *tech, MaterialQuality qualityLevel=QUALITY_LOW, float lodDistance=0.0f)
Set technique.
Definition: Material.cpp:926
IntVector2 absoluteOffset_
Absolute position adjustment for glyphs.
Definition: Font.h:105
ConstraintType
Supported constraint types.
Definition: Constraint.h:36
Vector2 GetCharPosition(unsigned index)
Return position of character by index relative to the text element origin.
Definition: Text.cpp:419
unsigned shadersChangedFrameNumber_
Frame number on which shaders last changed.
Definition: Renderer.h:582
~MutexLock()
Destruct. Release the mutex.
Definition: Mutex.cpp:112
CursorShapeInfo()
Construct with defaults.
Definition: Cursor.h:58
const String & GetName() const override
Return the pipe name.
Definition: NamedPipe.h:58
unsigned GetVertexSize() const
Return vertex size in bytes.
Definition: VertexBuffer.h:79
Iterator Insert(const Pair< T, U > &pair)
Insert a pair. Return an iterator to it.
Definition: HashMap.h:369
float GetOpacity() const
Return opacity.
Definition: Text3D.cpp:503
int GetPacketsInPerSec() const
Return packets received per second.
Definition: Connection.cpp:1111
void CleanupConnection(Connection *connection)
Clean up all references to a network connection that is about to be removed.
Definition: Component.cpp:214
int Left() const
Return left coordinate.
Definition: Rect.h:449
Compressed image mip level.
Definition: Image.h:55
bool SaveJSON(Serializer &dest, const String &indentation="\t") const
Save to a JSON file. Return true if successful.
Definition: Scene.cpp:285
bool WriteVariantVector(const VariantVector &value)
Write a variant vector.
Definition: Serializer.cpp:335
XMLElement GetRoot(const String &name=String::EMPTY)
Return the root element, with optionally specified name. Return null element if not found.
Definition: XMLFile.cpp:171
bool SetInt64(const String &name, long long value)
Set a long long integer attribute.
Definition: XMLElement.cpp:377
void OnSetAttribute(const AttributeInfo &attr, const Variant &src) override
Handle attribute write access.
Definition: LuaScriptInstance.cpp:95
bool discardLock_
Discard lock flag. Used by OpenGL only.
Definition: IndexBuffer.h:117
float fogHeight_
Fog height distance.
Definition: Zone.h:160
RenderSurface * GetRenderSurfaceFromTexture(Texture *texture, CubeMapFace face=FACE_POSITIVE_X)
Helper function to get the render surface from a texture. 2D textures will always return the first fa...
Definition: View.cpp:3155
void SetLayers(unsigned layers)
Set the number of layers in the texture. To be used before SetData.
Definition: Texture2DArray.cpp:146
Font * GetFont() const
Return font.
Definition: Text.h:130
LightType
Light types.
Definition: Light.h:39
Scene node that may contain components and child nodes.
Definition: Node.h:75
void Reset()
Reset to null and release the array reference.
Definition: ArrayPtr.h:132
bool blockEvents_
Block object from sending and receiving any events.
Definition: Object.h:193
T & Front()
Return first element.
Definition: List.h:405
virtual bool BeginLoad(Deserializer &source)
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Resource.cpp:69
ShadowMapFilter shadowMapFilter_
Function pointer of shadow map filter.
Definition: Renderer.h:512
unsigned GetVertexCount() const
Return number of used vertices.
Definition: Geometry.h:95
unsigned rttFormat_
Render texture format.
Definition: View3D.h:97
void SetOcclusion(bool enable)
Set whether to use in occlusion rendering. Default true.
Definition: Material.cpp:1110
bool HasPass(unsigned passIndex) const
Return whether has a pass.
Definition: Technique.h:225
Entity * entity_
Current entity.
Definition: SpriterInstance2D.h:97
unsigned GetNumViewports() const
Return number of backbuffer viewports.
Definition: Renderer.h:256
float rotationMax_
Particle rotation angle maximum.
Definition: ParticleEffect.h:409
void OnAttributeAnimationAdded() override
Handle attribute animation added.
Definition: Component.cpp:226
const Controls & GetControls() const
Return the client controls of this connection.
Definition: Connection.h:183
TextureAddressMode GetAddressMode(TextureCoordinate coord) const
Return addressing mode by texture coordinate.
Definition: Texture.h:94
const Color & GetColor() const
Return color.
Definition: Light.h:223
LinkedList()
Construct empty.
Definition: LinkedList.h:53
LightType GetLightType() const
Return light type.
Definition: Light.h:217
static const IntVector3 ZERO
Zero vector.
Definition: Vector3.h:166
String soundType_
SoundSource type, determines the master gain group.
Definition: SoundSource.h:132
const String & GetMessage() const
Return message text. Return empty string if there is no message text element.
Definition: MessageBox.cpp:131
void ApplyAngularImpulse(float impulse, bool wake)
Apply angular impulse.
Definition: RigidBody2D.cpp:359
bool SetKeyFrame(float time, const Variant &value)
Set key frame.
Definition: ValueAnimation.cpp:274
void SetInAirRPM(float rpm)
Set revolution per minute value for when wheel doesn't touch ground. If set to 0 (or not set),...
Definition: RaycastVehicle.cpp:692
void SetGravity(const Vector2 &gravity)
Set gravity.
Definition: PhysicsWorld2D.cpp:408
void SetRadius(float radius)
Set radius.
Definition: CollisionCircle2D.cpp:58
UI subsystem. Manages the graphical user interface.
Definition: UI.h:60
void UpdateSourceBatches() override
Handle update vertices.
Definition: AnimatedSprite2D.cpp:233
const String & GetName() const
Return name.
Definition: Resource.h:86
PODVector< Matrix3x4 > worldTransforms_
World transforms of valid (existing and visible) instances.
Definition: StaticModelGroup.h:88
Sprite2D(Context *context)
Construct.
Definition: Sprite2D.cpp:38
void SetMotorSpeed(float motorSpeed)
Set motor speed.
Definition: ConstraintRevolute2D.cpp:131
SharedPtr< TmxFile2D > tmxFile_
Tmx file.
Definition: TileMap2D.h:79
bool GetSubStepping() const
Return sub stepping.
Definition: PhysicsWorld2D.cpp:695
bool GetFixedWidthResizing() const
Return whether is resizing width is fixed.
Definition: Window.h:107
short x_
X position in texture.
Definition: FontFace.h:40
float GetFloat() const
Return float.
Definition: PListFile.cpp:202
void SetDrawRect(const Rect &rect)
Set draw rectangle.
Definition: StaticSprite2D.cpp:98
unsigned FindItem(UIElement *item) const
Return index of item, or M_MAX_UNSIGNED If not found.
Definition: ListView.cpp:845
bool WriteLine(const String &value)
Write a text line. Char codes 13 & 10 will be automatically appended.
Definition: Serializer.cpp:399
float aspectRatio_
Aspect ratio.
Definition: Camera.h:256
bool HasEventHandlers() const
Return whether has subscribed to any event.
Definition: Object.h:163
void OnAttributeAnimationAdded() override
Handle attribute animation added.
Definition: UIElement.cpp:1878
Vector4 Row(unsigned i) const
Return matrix row.
Definition: Matrix3x4.h:663
bool Execute(const String &declaration, const VariantVector ¶meters=Variant::emptyVariantVector, Variant *functionReturn=nullptr, bool unprepare=true)
Query for a function by declaration and execute if found.
Definition: ScriptFile.cpp:293
T Lerp(T lhs, T rhs, U t)
Linear interpolation between two values.
Definition: MathDefs.h:75
void SetAngularDamping(float angularDamping)
Set angular damping.
Definition: RigidBody2D.cpp:202
bool Save(Serializer &dest) const override
Save to binary data. Return true if successful.
Definition: Scene.cpp:141
void AddNode(unsigned oldID, Node *node)
Remember a created node.
Definition: SceneResolver.cpp:45
const String & GetName() const
Return the package file name.
Definition: PackageFile.h:65
bool animationDirty_
Animation dirty flag.
Definition: AnimatedModel.h:245
BoundingBox(const Vector3 &min, const Vector3 &max) noexcept
Construct from minimum and maximum vectors.
Definition: BoundingBox.h:68
void HandleUpdate(StringHash eventType, VariantMap &eventData)
Handle the logic update event.
Definition: LuaScriptInstance.cpp:656
NavigationMesh * GetNavigationMesh() const
Get the Navigation mesh assigned to the crowd.
Definition: CrowdManager.h:129
2D particle.
Definition: ParticleEmitter2D.h:34
void SetMaxForce(float maxForce)
Set max force.
Definition: ConstraintMouse2D.cpp:72
Vector3 MoveAlongSurface(const Vector3 &start, const Vector3 &end, int queryFilterType, int maxVisited=3)
Try to move along the surface from one point to another using the crowd initialized query extent (bas...
Definition: CrowdManager.cpp:398
Vector< SharedPtr< DbConnection > > connections_
Active database connections.
Definition: Database.h:71
void DrawPoint(const b2Vec2 &p, float32 size, const b2Color &color) override
Draw a point.
Definition: PhysicsWorld2D.cpp:233
Vector3 padding_
Bounding box padding.
Definition: NavigationMesh.h:338
RenderSurface * GetDepthStencil(int width, int height, int multiSample, bool autoResolve)
Allocate a depth-stencil surface that does not need to be readable. Should only be called during actu...
Definition: Renderer.cpp:1089
pugi::xpath_node_set * GetXPathNodeSet() const
Return pugixml xpath_node_set.
Definition: XMLElement.h:344
ScriptFile * GetScriptFile() const
Return script file.
Definition: ScriptInstance.h:121
void SetShadowIntensity(float intensity)
Set light intensity in shadow between 0.0 - 1.0. 0.0 (the default) gives fully dark shadows.
Definition: Light.cpp:392
const IntRect & GetScissorRect() const
Return scissor rectangle coordinates.
Definition: Graphics.h:537
unsigned length_
String length.
Definition: Str.h:622
void UpdateSlider()
Update slider knob position & size.
Definition: Slider.cpp:227
T * ptr_
Pointer to the object.
Definition: Ptr.h:243
UI(Context *context)
Construct.
Definition: UI.cpp:92
Camera * GetCamera() const
Return viewport camera.
Definition: Viewport.cpp:122
Vector< SharedPtr< VertexBuffer > > vertexBuffers_
Vertex buffers.
Definition: Model.h:210
void SetAllowSleeping(bool enable)
Set allow sleeping.
Definition: PhysicsWorld2D.cpp:388
bool Exists(const String &name) const
Return whether a file exists in the resource directories or package files. Does not check manually ad...
Definition: ResourceCache.cpp:732
int refreshRate_
Refresh rate. 0 to pick automatically.
Definition: Graphics.h:101
void InsertItem(unsigned index, UIElement *item, UIElement *parentItem=nullptr)
Insert item at a specific index. In hierarchy mode, the optional parameter will be used to determine ...
Definition: ListView.cpp:350
PhysicsWorld(Context *context)
Construct.
Definition: PhysicsWorld.cpp:147
void ReleaseShaders()
Reset shader pointers.
Definition: Technique.cpp:171
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: DecalSet.h:221
SLNet::RakPeerInterface * rakPeerClient_
SLikeNet peer instance for client connection.
Definition: Network.h:152
void Push(const PODVector< T > &vector)
Add another vector at the end.
Definition: Vector.h:850
int GetWidth() const
Return text width.
Definition: Text3D.cpp:458
Variant value_
Value.
Definition: Material.h:52
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Pair.h:71
Vector3 ReNormalized(float minLength, float maxLength, const Vector3 &defaultValue=Vector3::ZERO, float eps=M_LARGE_EPSILON) const
Return normalized vector with length in given range.
Definition: Vector3.h:445
Rect Projected(const Matrix4 &projection) const
Return projected by a 4x4 projection matrix.
Definition: BoundingBox.cpp:170
float r_
Red value.
Definition: Color.h:256
bool LoadRaw(Deserializer &source)
Load raw sound data.
Definition: Sound.cpp:216
BoundingBox boneBoundingBox_
Bounding box calculated from bones.
Definition: AnimatedModel.h:229
Orientation GetOrientation() const
Return orientation type.
Definition: ProgressBar.h:63
UpdateEvent
Definition: LogicComponent.h:33
String name_
Name.
Definition: RenderPath.h:74
asIScriptObject * GetScriptObject() const
Return script object.
Definition: ScriptInstance.h:124
const String & GetSource() const
Return source.
Definition: TmxFile2D.h:142
Font resource.
Definition: Font.h:48
void SetRadius(float radius)
Set radius.
Definition: OffMeshConnection.cpp:89
bool occlusion_
Render occlusion flag.
Definition: Material.h:315
virtual b2JointDef * GetJointDef()
Return joint def.
Definition: Constraint2D.h:85
virtual void ApplyNodeWorldScale()=0
Apply Node world scale.
bool Load(const XMLElement &element, const TileMapInfo2D &info)
Load from XML element.
Definition: TmxFile2D.cpp:97
SharedPtr< Image > nextSibling_
Next texture array or cube map image.
Definition: Image.h:238
Template implementation of the variant attribute accessor.
Definition: Serializable.h:153
String source_
Source.
Definition: TmxFile2D.h:151
~CollisionShape2D() override
Destruct.
Definition: CollisionShape2D.cpp:46
bool HasTag(const String &tag) const
Return whether element is tagged by a specific tag.
Definition: UIElement.cpp:1701
int SystemRun(const String &fileName, const Vector< String > &arguments)
Run a specific program, block until it exits and return the exit code. Will fail if any allowed paths...
Definition: FileSystem.cpp:384
Depth bias parameters. Used both by lights (for shadow mapping) and materials.
Definition: Light.h:56
BoundingBox worldBoundingBox_
World-space bounding box.
Definition: Drawable.h:329
Zone * GetZone(Drawable *drawable)
Return the drawable's zone, or camera zone if it has override mode enabled.
Definition: View.h:282
bool IsEnabled(const String &tag) const
Return true of any of render targets or commands with specified tag are enabled.
Definition: RenderPath.cpp:378
float nearDistance_
Near distance.
Definition: SoundSource3D.h:82
bool lineAntiAlias_
Line antialiasing flag.
Definition: Material.h:313
virtual void Update(float timeStep)
Called on scene update, variable timestep.
Definition: LogicComponent.cpp:51
bool SetMatrix4(const String &name, const Matrix4 &value)
Set a Matrix4 attribute.
Definition: XMLElement.cpp:558
void ProcessNode(unsigned nodeID)
Process a node for sending a network update. Recurses to process depended on node(s) first.
Definition: Connection.cpp:1199
void SetNorthNeighbor(Terrain *north)
Set north (positive Z) neighbor terrain for seamless LOD changes across terrains.
Definition: Terrain.cpp:264
virtual void DrawDebugGeometry(DebugRenderer *debug, bool depthTest)
Visualize the component as debug geometry.
Definition: Component.cpp:116
void SetMaxLayers(unsigned maxLayers)
Set the maximum number of layers that navigation construction can create.
Definition: DynamicNavigationMesh.cpp:747
SDL_Joystick * joystick_
SDL joystick.
Definition: Input.h:109
void LoadSingleLanguageJSON(const JSONValue &source, const String &language=String::EMPTY)
Load strings from JSONValue for specific language.
Definition: Localization.cpp:217
void SetBullet(bool bullet)
Set bullet mode.
Definition: RigidBody2D.cpp:253
HashSet< unsigned > nodesToProcess_
Node ID's to process during a replication update.
Definition: Connection.h:311
bool Load(Deserializer &source)
Read from a stream. Return true if successful.
Definition: Skeleton.cpp:40
Vector3 position_
Constraint position.
Definition: Constraint.h:181
b2ChainShape chainShape_
Chain shape.
Definition: CollisionChain2D.h:75
float d_
Plane constant.
Definition: Plane.h:122
bool IsInf(T value)
Check whether a floating point value is positive or negative infinity.
Definition: MathDefs.h:116
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle frame start event. Purge completed work from the main thread queue, and perform work if no thr...
Definition: WorkQueue.cpp:401
const Vector2 & GetProjectionOffset() const
Return projection offset.
Definition: Camera.h:173
Iterator()=default
Construct.
b2BodyDef bodyDef_
Box2D body define.
Definition: RigidBody2D.h:173
static void RegisterObject(Context *context)
Register object factory.
Definition: Animation.cpp:122
int orderInLayer_
Order in layer.
Definition: Drawable2D.h:114
String metadata_
Command/pass metadata.
Definition: RenderPath.h:148
void SetMaxLights(unsigned num)
Set maximum number of per-pixel lights. Default 0 is unlimited.
Definition: Drawable.cpp:217
int width_
Width.
Definition: TmxFile2D.h:81
bool vsync_
Whether the vertical synchronization is used.
Definition: Graphics.h:93
Vector< WeakPtr< Node > > controlPoints_
Control Points for the SplinePath.
Definition: SplinePath.h:140
unsigned GetNumBufferedRows() const
Return number of buffered rows.
Definition: Console.cpp:295
unsigned size_
File size.
Definition: PackageFile.h:36
void ParseParameters(unsigned char *bufData, unsigned bufSize)
Inspect the constant parameters and input layout (if applicable) from the shader bytecode.
Definition: OGLShaderVariation.cpp:201
float minAngle_
Minimal angle between billboard normal and look-at direction.
Definition: BillboardSet.h:172
Vector2 WorldToLocal2D(const Vector2 &vector) const
Convert a world space position or rotation to local space (for Urho2D).
Definition: Node.cpp:1216
unsigned timeStepSmoothing_
How many frames to average for the smoothed timestep.
Definition: Engine.h:136
Vector< asIScriptContext * > scriptFileContexts_
Script function/method execution contexts.
Definition: Script.h:137
bool Assign(const CustomVariantValue &rhs) override
Assign value.
Definition: Variant.h:242
~Animation() override
Destruct.
void CalculateLayout(PODVector< int > &positions, PODVector< int > &sizes, const PODVector< int > &minSizes, const PODVector< int > &maxSizes, const PODVector< float > &flexScales, int targetSize, int begin, int end, int spacing)
Calculate child widths/positions in the layout.
Definition: UIElement.cpp:2094
void SetParent(Node *parent)
Assign to a new parent scene node. Retains the world transform.
Definition: Node.cpp:1125
PODVector< unsigned > morphRangeStarts_
Vertex buffer morph range start.
Definition: Model.h:222
float y_
Y coordinate.
Definition: Vector2.h:376
void SetFixedScreenSize(bool enable)
Set whether billboards have fixed size on screen (measured in pixels) regardless of distance to camer...
Definition: BillboardSet.cpp:308
SharedPtr< JSONFile > loadJSONFile_
JSON file used while loading.
Definition: SpriteSheet2D.h:92
static const JSONObject emptyObject
Empty JSON object.
Definition: JSONValue.h:278
unsigned loadedResources_
Loaded resources.
Definition: Scene.h:77
void SetShadowed(bool enable)
Enable shadowing in CPU memory. Shadowing is forced on if the graphics subsystem does not exist.
Definition: VertexBuffer.cpp:52
bool IsInside(const Vector3 &point) const
Check whether a point is inside.
Definition: Zone.cpp:211
BlendMode GetBlendMode() const
Return blend mode.
Definition: BorderImage.h:94
String defines_
Defines to use in compiling.
Definition: ShaderVariation.h:172
unsigned GetNumComponents() const
Return number of components.
Definition: Node.h:537
bool HasComponent(StringHash type) const
Return whether has a specific component.
Definition: Node.cpp:1363
void CopySelectedRows() const
Copy selected rows to system clipboard.
Definition: Console.cpp:300
unsigned selectionStart_
Selection start.
Definition: Text.h:235
JSONValue & operator=(bool rhs)
Assign from a boolean.
Definition: JSONValue.cpp:59
unsigned indexSize_
Index size.
Definition: IndexBuffer.h:103
Profiler * profiler_
Profiler.
Definition: Profiler.h:251
Vector2 TileIndexToPosition(int x, int y) const
Convert tile index to position.
Definition: TileMap2D.cpp:167
const BiasParameters & GetShadowBias() const
Return shadow depth bias parameters.
Definition: Light.h:268
Constraint2D * GetOtherConstraint() const
Return other constraint.
Definition: ConstraintGear2D.h:54
float YawAngle() const
Return yaw angle in degrees.
Definition: Quaternion.cpp:209
void SetBoundingBox(const BoundingBox &box)
Set local-space bounding box.
Definition: StaticModel.cpp:359
void SetEffectShadowOffset(const IntVector2 &offset)
Set shadow offset.
Definition: Text.cpp:389
HashSet< StringHash > dirtyVars_
Dirty user vars.
Definition: ReplicationState.h:165
void SetRotation(const Matrix3 &rotation)
Set rotation elements from a 3x3 matrix.
Definition: Matrix4.h:490
Geometry * GetLodGeometry(unsigned batchIndex, unsigned level) override
Return the geometry for a specific LOD level.
Definition: CustomGeometry.cpp:138
float GetRadius() const
Return radius.
Definition: OffMeshConnection.h:63
void ResetSuspension()
Reset all suspension.
Definition: RaycastVehicle.cpp:404
const String & GetOrientations() const
Return allowed screen orientations.
Definition: Graphics.h:396
void SetDefaultColor()
Restore UI element's default color.
Definition: UIBatch.cpp:64
SphereOctreeQuery(PODVector< Drawable * > &result, const Sphere &sphere, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with sphere and query parameters.
Definition: OctreeQuery.h:98
static void RegisterObject(Context *context)
Register object factory.
Definition: ScriptFile.cpp:109
void AddSelection(unsigned index)
Add item to the selection, multiselect mode only.
Definition: ListView.cpp:588
PODVector< UIBatch > debugDrawBatches_
UI rendering batches for debug draw.
Definition: UI.h:261
const Vector< SharedPtr< VertexBuffer > > & GetVertexBuffers() const
Return vertex buffers.
Definition: Model.h:158
TrailPoint()=default
Construct a zero-initialized TrailPoint.
bool IsInsideLocal(const Vector3 &point) const
Determines if the given local space point is within the model geometry.
Definition: StaticModel.cpp:338
Component * GetComponent(StringHash type) const
Return component in the same scene node by type. If there are several, returns the first.
Definition: Component.cpp:265
void ApplyWorldTransform(const Vector3 &newWorldPosition, const Quaternion &newWorldRotation)
Apply new world transform after a simulation step. Called internally.
Definition: RigidBody.cpp:711
SharedPtr< JSONFile > loadJSONFile_
JSON file used while loading.
Definition: Material.h:325
PODVector< unsigned > printText_
Text modified into printed form.
Definition: Text.h:255
Vector(unsigned size, const T &value)
Construct with initial size and default value.
Definition: Vector.h:63
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: SoundSource3D.cpp:73
float LengthSquared() const
Return squared length.
Definition: Vector2.h:304
@ USE_ORIGINAL_POSE
Choose between using the original pose or the active pose as a basis for a solution.
Definition: IKSolver.h:148
Vector2 axis_
Axis.
Definition: ConstraintWheel2D.h:88
void SetScale(const Vector3 &scale)
Set scaling elements.
Definition: Matrix3.h:177
bool IsInside(const Vector3 &point) const
Determines if the given world space point is within the model geometry.
Definition: StaticModel.cpp:329
Component * GetComponent(StringHash type, bool recursive=false) const
Return component by type. If there are several, returns the first.
Definition: Node.cpp:1401
int GetInt() const
Return int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1087
Color effectColor_
Effect color.
Definition: Text.h:247
void SetLodDistance(float distance)
Set the LOD distance.
Definition: Geometry.cpp:148
~CollisionCircle2D() override
Destruct.
void SetPositionSilent(const Vector3 &position)
Set position in parent space silently without marking the node & child nodes dirty....
Definition: Node.h:625
void SetAnchor(const Vector2 &anchor)
Set anchor.
Definition: ConstraintFriction2D.cpp:57
Variant(int value)
Construct from integer.
Definition: Variant.h:331
Vector2 GetScale2D() const
Return scale in parent space (for Urho2D).
Definition: Node.h:401
Vector3 Column(unsigned j) const
Return matrix column.
Definition: Matrix3x4.h:666
void HandleMessageAcknowledged(StringHash eventType, VariantMap &eventData)
Handle events that dismiss the message box.
Definition: MessageBox.cpp:136
signed char * GetRepeat() const
Return loop start.
Definition: Sound.h:76
void DrawDebugGeometry()
Add debug geometry to the debug renderer.
Definition: TileMap2D.cpp:103
Matrix2 Transpose() const
Return transpose.
Definition: Matrix2.h:163
int height_
Height.
Definition: TmxFile2D.h:83
void SetFixedSize(const IntVector2 &size)
Set fixed size.
Definition: UIElement.cpp:647
unsigned GetMaxObstacles() const
Return the maximum number of obstacles allowed.
Definition: DynamicNavigationMesh.h:91
void SetObstacleAvoidanceParams(unsigned obstacleAvoidanceType, const CrowdObstacleAvoidanceParams ¶ms)
Set the params for the specified obstacle avoidance type.
Definition: CrowdManager.cpp:379
VariantVector knots_
Knots on the spline.
Definition: Spline.h:123
HashMap< StringHash, PODVector< Node * > > taggedNodes_
Cached tagged nodes by tag.
Definition: Scene.h:292
Vector3 SignedScale(const Matrix3 &rotation) const
Return the scaling part with the sign. Reference rotation matrix is required to avoid ambiguity.
Definition: Matrix3.h:203
SharedPtr< Geometry > spotLightGeometry_
Spot light volume geometry.
Definition: Renderer.h:484
TileMapLayer2D(Context *context)
Construct.
Definition: TileMapLayer2D.cpp:39
Mutex gpuObjectMutex_
Mutex for accessing the GPU objects vector from several threads.
Definition: Graphics.h:708
float GetDoubleClickInterval() const
Return UI element double click interval in seconds.
Definition: UI.h:173
unsigned GetMorphRangeStart(unsigned bufferIndex) const
Return vertex buffer morph range start.
Definition: Model.cpp:773
const TmxLayer2D * GetTmxLayer() const
Return tmx layer.
Definition: TileMapLayer2D.h:70
IndexBuffer * GetIndexBuffer() const
Return the index buffer.
Definition: Geometry.h:80
Quaternion(const Vector3 &xAxis, const Vector3 &yAxis, const Vector3 &zAxis) noexcept
Construct from orthonormal axes.
Definition: Quaternion.h:126
MaterialQuality qualityLevel_
Quality level.
Definition: Material.h:70
float GetMobileNormalOffsetMul() const
Return shadow normal offset multiplier for mobile platforms.
Definition: Renderer.h:340
void RemoveAllInstanceNodes()
Remove all instance scene nodes.
Definition: StaticModelGroup.cpp:303
float GetDistanceToWall(const Vector3 &point, float radius, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, Vector3 *hitPos=nullptr, Vector3 *hitNormal=nullptr)
Return distance to wall from a point. Maximum search radius must be specified.
Definition: NavigationMesh.cpp:782
Vector2 GetCharPosition(unsigned index)
Return position of character by index relative to the text element origin.
Definition: Text3D.cpp:488
void Close()
Close the log file.
Definition: Log.cpp:106
static Matrix3x4 GetFullscreenQuadTransform(Camera *camera)
Return a transform for deferred fullscreen quad (directional light) rendering.
Definition: Light.cpp:644
void RemoveTile(const IntVector2 &tile) override
Remove tile from navigation mesh.
Definition: DynamicNavigationMesh.cpp:561
String ToString() const
Return as string.
Definition: Rect.cpp:74
Pair template class.
Definition: Pair.h:31
Sphere(const Vector3 ¢er, float radius) noexcept
Construct from center and radius.
Definition: Sphere.h:49
bool InsideGeometry(const void *vertexData, unsigned vertexSize, unsigned vertexStart, unsigned vertexCount) const
Return whether ray is inside non-indexed geometry.
Definition: Ray.cpp:371
Localization subsystem. Stores all the strings in all languages.
Definition: Localization.h:32
static bool CompareNodes(Node *&lhs, Node *&rhs)
Compare two nodes.
Definition: HashSet.h:637
File entry within the package file.
Definition: PackageFile.h:31
String GetError() const
Return error. Only non-empty in the error state.
Definition: HttpRequest.cpp:281
const VariantMap & GetGlobalVars() const
Return all global variables.
Definition: Context.h:140
bool SetRect(const String &name, const Rect &value)
Set a Rect attribute.
Definition: XMLElement.cpp:397
DBAPI
Supported database API.
Definition: Database.h:34
Singly-linked list node base class.
Definition: LinkedList.h:36
unsigned GetData(signed char *dest, unsigned numBytes) override
Produce sound data into destination. Return number of bytes produced. Called by SoundSource from the ...
Definition: OggVorbisSoundStream.cpp:72
void HandleTextInput(StringHash eventType, VariantMap &eventData)
Handle text input event.
Definition: UI.cpp:2030
InterpolationMode GetInterpolationMode() const
Return the interpolation mode.
Definition: Spline.h:77
void SetView(Scene *scene, Camera *camera, bool ownScene=true)
Define the scene and camera to use in rendering. When ownScene is true the View3D will take ownership...
Definition: View3D.cpp:97
UIElement * GetElementAt(const IntVector2 &position, bool enabledOnly=true)
Return UI element at global screen coordinates. By default returns only input-enabled elements.
Definition: UI.cpp:815
Data for one geometry instance.
Definition: Batch.h:112
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: Renderer.h:474
RenderSurface * GetRenderSurface() const
Return render surface.
Definition: Texture2D.h:77
Vector2 anchor_
Anchor.
Definition: ConstraintFriction2D.h:66
String Replaced(char replaceThis, char replaceWith, bool caseSensitive=true) const
Return a string with all occurrences of a character replaced.
Definition: Str.cpp:294
UIElement * GetChild(unsigned index) const
Return child element by index.
Definition: UIElement.cpp:1631
const VariantMap & GetGlobalVars() const
Return all global variables.
Definition: Object.cpp:411
const T & Back() const
Return last key.
Definition: HashSet.h:515
float MaxRGB() const
Return the largest value of the RGB components.
Definition: Color.cpp:197
void SetSubStepping(bool enable)
Set sub stepping.
Definition: PhysicsWorld2D.cpp:403
SharedPtr< T > & operator=(const SharedPtr< T > &rhs)
Assign from another shared pointer.
Definition: Ptr.h:86
unsigned GetNumBackgroundLoadResources() const
Return number of pending background-loaded resources.
Definition: ResourceCache.cpp:711
String ToString() const
Return as string.
Definition: Matrix3.cpp:65
String factory class that manages the string constants the script engine uses.
Definition: Addons.h:310
static const Vector2 LEFT
(-1,0) vector.
Definition: Vector2.h:381
void UnmapBuffer()
Unmap the GPU buffer. Not used on OpenGL.
Definition: OGLIndexBuffer.cpp:271
Definition: DynamicNavigationMesh.h:41
SharedPtr< RenderPath > renderPath_
Rendering path.
Definition: Viewport.h:109
bool GetUseSystemShapes() const
Return whether is using system default shapes.
Definition: Cursor.h:124
unsigned profilerInterval_
Profiler accumulation interval.
Definition: DebugHud.h:129
static VariantMap ParseParameters(const Vector< String > &arguments)
Parse the engine startup parameters map from command line arguments.
Definition: Engine.cpp:797
WeakPtr< ScriptFile > defaultScriptFile_
Immediate execution script file.
Definition: Script.h:133
Vector3 velocity_
Velocity.
Definition: ParticleEmitter.h:36
unsigned GetNumCompressedLevels() const
Return number of compressed mip levels. Returns 0 if the image is has not been loaded from a source f...
Definition: Image.h:180
void SetViewport(const IntRect &rect)
Set viewport.
Definition: OGLGraphics.cpp:1721
Vector< AnimationTriggerPoint > triggers_
Animation trigger points.
Definition: Animation.h:201
float startParticleSizeVariance_
Start particle size variance.
Definition: ParticleEffect2D.h:298
WeakPtr< Object > target_
Target object.
Definition: ValueAnimationInfo.h:86
virtual void Clone(void *dest) const
Placement clone.
Definition: Variant.h:197
const Vector3 & GetVector3() const
Return Vector3 or zero on type mismatch.
Definition: Variant.h:1182
SharedPtr< ParticleEffect2D > effect_
Particle effect.
Definition: ParticleEmitter2D.h:145
@ LM_FREE
No layout operations will be performed.
Definition: UIElement.h:88
void GetChildrenWithTagRecursive(PODVector< Node * > &dest, const String &tag) const
Return child nodes with a specific tag recursively.
Definition: Node.cpp:2169
Technique * GetTechnique(unsigned index) const
Return technique by index.
Definition: Material.cpp:1186
SharedPtr< Geometry > occlusionGeometry_
Geometry that is used for occlusion.
Definition: TerrainPatch.h:122
void SetMaxRotationSpeed(float speed)
Set particle maximum rotation speed.
Definition: ParticleEffect.cpp:575
void RemoveDrawable(Drawable *drawable, bool resetOctant=true)
Remove a drawable object from this octant.
Definition: Octree.h:65
float timeToLive_
Maximum time to live in seconds (0 = infinite).
Definition: DecalSet.h:93
bool IsSRGB() const
Whether this texture is in sRGB, only relevant for DDS.
Definition: Image.h:143
void Raise() const
Raises window if it was minimized.
Definition: Graphics.cpp:353
bool dragSlider_
Internal flag of whether the slider is being dragged.
Definition: Slider.h:110
unsigned long long sortKey_
State sorting key.
Definition: Batch.h:78
const PODVector< unsigned char > & GetBuffer() const
Return the buffer.
Definition: VectorBuffer.h:68
void HandleEffectReloadFinished(StringHash eventType, VariantMap &eventData)
Handle live reload of the particle effect.
Definition: ParticleEmitter.cpp:613
Texture * parentTexture_
Parent texture.
Definition: RenderSurface.h:127
const FocusParameters & GetShadowFocus() const
Return shadow map focus parameters.
Definition: Light.h:274
void Define(float fov, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4 &transform=Matrix3x4::IDENTITY)
Define with projection parameters and a transform matrix.
Definition: Frustum.cpp:75
void SetLodLevel(unsigned lodLevel)
Set model LOD level.
Definition: CollisionShape.cpp:810
bool IsStarted() const
Return whether thread exists.
Definition: Thread.h:61
unsigned levels_
Current mip levels.
Definition: Texture.h:213
b2PolygonShape polygonShape_
Polygon shape.
Definition: CollisionPolygon2D.h:71
void SetQueryFilterTypesAttr(const VariantVector &value)
Set all the query filter types configured in the crowd based on the corresponding attribute.
Definition: CrowdManager.cpp:280
bool networkUpdate_
Network update queued flag.
Definition: Component.h:142
void DecodeToUnicode()
UTF8 to Unicode.
Definition: Text.cpp:286
void SetEchoCharacter(unsigned c)
Set echo character for password entry and such. 0 (default) shows the actual text.
Definition: LineEdit.cpp:516
LoopMode2D GetLoopMode() const
Return loop mode.
Definition: AnimatedSprite2D.h:90
PODVector< unsigned char > offMeshAreas_
Offmesh connection areas.
Definition: NavBuildData.h:74
Sprite2D * GetSprite() const
Return sprite.
Definition: ParticleEffect2D.h:137
bool cubemap_
Cube map flag.
Definition: RenderPath.h:90
FontFace * GetFace(float pointSize)
Return font face. Pack and render to a texture if not rendered yet. Return null on error.
Definition: Font.cpp:139
unsigned poolSize_
Database connection pool size. Default to 0 when using ODBC 3.0 or later as ODBC 3....
Definition: Database.h:69
void SetNumViewports(unsigned num)
Set number of viewports.
Definition: RenderSurface.cpp:42
NodeReplicationState * nodeState_
Parent node replication state.
Definition: ReplicationState.h:148
~ShaderParameterAnimationInfo() override
Destruct.
~ConstraintDistance2D() override
Destruct.
float elapsedTime_
Amount of time that has elapsed while moving.
Definition: SplinePath.h:130
unsigned instancingVertexAttributes_
Vertex attribute instancing bitmask for keeping track of divisors.
Definition: OGLGraphicsImpl.h:122
IntVector2 position_
Window position.
Definition: Graphics.h:729
void PushLuaTable(const char *tableName)
Push Lua table to stack. When the specified table is not found then a nil is pushed instead.
Definition: LuaFunction.cpp:151
Variant(double value)
Construct from a double.
Definition: Variant.h:373
Component that drives an AnimatedModel's animations.
Definition: AnimationController.h:84
Vector< String > autoComplete_
Definition: Console.h:182
unsigned GetDummyColorFormat() const
Return dummy color texture format for shadow maps. Is "NULL" (consume no video memory) if supported.
Definition: Graphics.h:408
void SetShaders(ShaderVariation *vs, ShaderVariation *ps)
Set shaders.
Definition: OGLGraphics.cpp:1012
IKSolver(Context *context)
Construct an IK root component.
Definition: IKSolver.cpp:48
bool SetSize(int width, int height, unsigned format, TextureUsage usage=TEXTURE_STATIC, int multiSample=1, bool autoResolve=true)
Set size, format, usage and multisampling parameters for rendertargets. Zero size will follow applica...
Definition: Texture2D.cpp:112
void * GetOwner() const
Return owner.
Definition: ValueAnimation.h:111
pugi::xml_node_struct * node_
Pugixml node.
Definition: XMLElement.h:309
Vector< String > history_
Command history.
Definition: Console.h:160
Particle emitter component.
Definition: ParticleEmitter.h:54
void SetShadowFocus(const FocusParameters ¶meters)
Set shadow map focusing parameters.
Definition: Light.cpp:379
float detailSampleDistance_
Detail sampling distance.
Definition: NavigationMesh.h:334
void ReleaseRef()
Decrement reference count and delete self if no more references. Can also be called outside of a Shar...
Definition: RefCounted.cpp:60
void UpdateSourceBatches() override
Update source batches.
Definition: ParticleEmitter2D.cpp:209
VectorBuffer contacts_
Temporary buffer with contact data.
Definition: PhysicsWorld2D.h:282
dtTileCache * tileCache_
Detour tile cache instance that works with the nav mesh.
Definition: DynamicNavigationMesh.h:134
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintMouse2D.cpp:45
Vector2 ReNormalized(float minLength, float maxLength, const Vector2 &defaultValue=Vector2::ZERO, float eps=M_LARGE_EPSILON) const
Return normalized vector with length in given range.
Definition: Vector2.h:356
asIScriptObject * CreateObject(const String &className, bool useInterface=false)
Create a script object. Optionally search for the first class in the module that implements the speci...
Definition: ScriptFile.cpp:524
ResourceRef GetScriptFileAttr() const
Return script file attribute.
Definition: LuaScriptInstance.cpp:764
SharedPtr< UIElement > rootModalElement_
UI root modal element.
Definition: UI.h:355
@ FM_RESETFOCUS
Resets focus when clicked.
Definition: UIElement.h:77
void SetStartScale(float startScale)
Set vertex blended color for start of trail.
Definition: RibbonTrail.cpp:331
~TechniqueEntry() noexcept=default
Destruct.
@ FM_FOCUSABLE
Is focusable.
Definition: UIElement.h:79
Variant(const Vector4 &value)
Construct from a Vector4.
Definition: Variant.h:391
Geometry(Context *context)
Construct with one empty vertex buffer.
Definition: Geometry.cpp:37
float GetRowHeight() const
Return row height.
Definition: FontFace.h:91
unsigned checksum_
File checksum.
Definition: PackageFile.h:38
SharedArrayPtr< unsigned char > rawVertexData_
Raw vertex data override.
Definition: Geometry.h:135
const TileMapInfo2D & GetInfo() const
Return information.
Definition: TileMap2D.h:59
void SetSpeedVariance(float speedVariance)
Set speed variance.
Definition: ParticleEffect2D.cpp:314
~Localization() override
Destruct. Free all resources.
bool SetSpeed(const String &name, float speed)
Set animation speed. Return true on success.
Definition: AnimationController.cpp:346
unsigned length_
String length.
Definition: Str.h:543
void SetNonThreadedWorkMs(int ms)
Set how many milliseconds maximum per frame to spend on low-priority work, when there are no worker t...
Definition: WorkQueue.h:101
void SetOccludee(bool enable)
Set occludee flag.
Definition: Drawable.cpp:235
void SetFontAttr(const ResourceRef &value)
Set font attribute.
Definition: Text3D.cpp:545
Node(const T &key)
Construct with key.
Definition: HashSet.h:45
float GetSizeAdd() const
Return particle size additive modifier.
Definition: ParticleEffect.h:311
void ApplyToNodes()
Apply animation to a scene node hierarchy.
Definition: AnimationState.cpp:470
void QueueViewport(RenderSurface *renderTarget, Viewport *viewport)
Queue a viewport for rendering. Null surface means backbuffer.
Definition: Renderer.cpp:803
HashMap< StringHash, SharedPtr< ShaderVariation > > psVariations_
Pixel shader variations.
Definition: Shader.h:77
float GetFloat(float defaultValue=0.0f) const
Return float value.
Definition: JSONValue.h:198
float GetEdgeMaxError() const
Return edge max error.
Definition: NavigationMesh.h:228
Vector3(const Vector2 &vector, float z) noexcept
Construct from a two-dimensional vector and the Z coordinate.
Definition: Vector3.h:199
float constantDepthBias_
Depth constant bias.
Definition: Graphics.h:811
CustomVariantValue()
Construct empty.
Definition: Variant.h:179
void Translate2D(const Vector2 &delta, TransformSpace space=TS_LOCAL)
Move the scene node in the chosen transform space (for Urho2D).
Definition: Node.h:243
bool clearSelectionOnDefocus_
Clear selection on defocus flag.
Definition: ListView.h:182
Displays rendering stats and profiling information.
Definition: DebugHud.h:45
Timer elapsedTime_
Elapsed time since program start.
Definition: Timer.h:121
Material * GetCustomMaterial() const
Return custom material.
Definition: StaticSprite2D.cpp:243
bool resizePopup_
Resize popup flag.
Definition: DropDownList.h:110
Vector3 position_
Position.
Definition: CustomGeometry.h:34
void RemoveAttribute(StringHash objectType, const char *name)
Remove object attribute.
Definition: Context.cpp:222
Quaternion GetFaceCameraRotation(const Vector3 &position, const Quaternion &rotation, FaceCameraMode mode, float minAngle=0.0f)
Return a world rotation for facing a camera on certain axes based on the existing world rotation.
Definition: Camera.cpp:521
bool Create() override
Create the GPU texture.
Definition: OGLTextureCube.cpp:433
unsigned char * GetShadowData() const
Return CPU memory shadow data.
Definition: IndexBuffer.h:83
static const Color GREEN
Opaque green color.
Definition: Color.h:273
Mutex bufferMutex_
Mutex for buffer data.
Definition: BufferedSoundStream.h:66
void SetTextEffect(TextEffect textEffect)
Set text effect.
Definition: Text3D.cpp:275
void SetAngle(float angle)
Set angle.
Definition: CollisionBox2D.cpp:94
FocusMode GetFocusMode() const
Return focus mode.
Definition: UIElement.h:538
bool OnDragDropTest(UIElement *source) override
React to drag and drop test. Return true to signal that the drop is acceptable.
Definition: LineEdit.cpp:165
IntVector2 dragBeginSumPos
Drag start position.
Definition: UI.h:243
Iterator & operator++()
Preincrement the pointer.
Definition: List.h:70
Vector3 Project(const Vector3 &point) const
Project a point on the plane.
Definition: Plane.h:97
const String & GetCategory() const
Return object category. Categories are (optionally) registered along with the object factory....
Definition: Object.cpp:449
bool IsInf() const
Return whether any element is Inf.
Definition: Quaternion.h:422
void SetFarDistance(float distance)
Set far distance. Outside this range sound will be completely attenuated.
Definition: SoundSource3D.cpp:119
SharedPtr< Animation > Clone(const String &cloneName=String::EMPTY) const
Clone the animation.
Definition: Animation.cpp:374
bool Empty() const
Return whether the string is empty.
Definition: Str.h:433
Vector< VAnimEventFrame > eventFrames_
Event frames.
Definition: ValueAnimation.h:171
Vector< U > Values() const
Return all the values.
Definition: HashMap.h:593
Scene * GetScene() const
Return the scene the node belongs to.
Definition: Component.cpp:155
bool Load(const unsigned char *fontData, unsigned fontDataSize, float pointSize) override
Load font face.
Definition: FontFaceFreeType.cpp:94
IntVector2 position_
Position.
Definition: UIElement.h:738
bool enabled_
Enabled flag.
Definition: BillboardSet.h:53
WeakPtr(const WeakPtr< T > &rhs) noexcept
Copy-construct from another weak pointer.
Definition: Ptr.h:281
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintPrismatic2D.cpp:174
bool looped_
Looped flag.
Definition: AnimationState.h:169
PODVector< UIBatch > batches_
UI rendering batches.
Definition: UI.h:361
AnimationState * AddAnimationState(Animation *animation)
Add an animation.
Definition: AnimatedModel.cpp:443
float rotationDelta_
Rotation delta.
Definition: ParticleEmitter2D.h:48
bool operator!=(const ScreenModeParams &rhs) const
Compare for inequality with another parameter set.
Definition: Graphics.h:124
float GetCcdMotionThreshold() const
Return continuous collision detection motion-per-simulation-step threshold.
Definition: RigidBody.cpp:693
bool logStatistics_
Show statistics flag.
Definition: Connection.h:335
bool FlipVertical()
Flip image vertically. Return true if successful.
Definition: Image.cpp:1098
T * ptr_
Pointer to the array.
Definition: ArrayPtr.h:209
Color modalFrameColor_
Modal frame color, used when modal flag is set.
Definition: Window.h:165
void SetValueType(VariantType valueType)
Set value type.
Definition: ValueAnimation.cpp:226
RenderSurface * GetRenderSurface() const
Return render surface.
Definition: Texture2DArray.h:75
Vector3 GetNormal(const Vector3 &worldPosition) const
Return normal at world coordinates.
Definition: Terrain.cpp:589
KeyValue & operator=(const KeyValue &rhs)=delete
Prevent assignment.
Rotation represented as a four-dimensional normalized vector.
Definition: Quaternion.h:35
SharedPtr< T > Lock() const
Convert to a shared pointer. If expired, return a null shared pointer.
Definition: Ptr.h:391
Vector3 GetWheelPosition(int wheel)
Get wheel position relative to RigidBody.
Definition: RaycastVehicle.cpp:416
HashMap< int, SharedPtr< Texture2D > > colorShadowMaps_
Shadow map dummy color buffers by resolution.
Definition: Renderer.h:506
void OnNodeSetEnabled(Node *node) override
Handle scene node enabled status changing.
Definition: StaticModelGroup.cpp:363
bool operator!=(const UniquePtr< U > &rhs) const
Test for inequality with another unique pointer.
Definition: Ptr.h:626
bool GetFocusOnShow() const
Return whether automatically focuses the line edit when showing.
Definition: Console.h:120
Vector< AnimationControl > animations_
Animation control structures.
Definition: AnimationController.h:206
Template implementation of the event handler invoke helper (stores a function pointer of specific cla...
Definition: Object.h:297
void SetOutputFace(unsigned index, CubeMapFace face)
Set output rendertarget face index for cube maps.
Definition: RenderPath.cpp:274
PODVector< Batch > volumeBatches_
Light volume draw calls.
Definition: Batch.h:309
void SetEffectDepthBias(float bias)
Set text effect Z bias. Zero by default, adjusted only in 3D mode.
Definition: Text.cpp:409
unsigned fontDataSize_
Size of font data.
Definition: Font.h:103
bool GetUseFixtureMass() const
Return whether to calculate mass and inertia from collision shapes automatically.
Definition: RigidBody2D.h:132
const String & GetPixelShaderDefines() const
Return additional pixel shader defines.
Definition: Material.h:208
float projNearClip_
Cached actual near clip distance.
Definition: Camera.h:244
float radius_
Sphere radius.
Definition: Sphere.h:204
T * operator->() const
Point to the object.
Definition: Ptr.h:406
Vector3 ScreenToWorldPoint(int x, int y, float depth) const
Convert screen coordinates and depth to a world space point.
Definition: Viewport.cpp:190
@ DD_TARGET
Drag and drop target flag.
Definition: UIElement.h:111
~Texture2DArray() override
Destruct.
Definition: Texture2DArray.cpp:56
High-resolution operating system timer used in profiling.
Definition: Timer.h:48
void SetCullMode(CullMode mode)
Set culling mode.
Definition: Material.cpp:1074
int maxShadowMaps_
Maximum number of shadow maps per resolution.
Definition: Renderer.h:556
unsigned char drawableFlags_
Drawable flags to include.
Definition: OctreeQuery.h:248
float setTimeTtl_
Set time command time-to-live.
Definition: AnimationController.h:68
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: TerrainPatch.cpp:180
void SetUpdateInvisible(bool enable)
Set whether to update when trail emitter are not visible.
Definition: RibbonTrail.cpp:883
HashMap< int, SharedPtr< FontFace > > faces_
Created faces.
Definition: Font.h:99
float GetRestitution() const
Return restitution coefficient.
Definition: RigidBody.cpp:678
PrimitiveType GetPrimitiveType() const
Return primitive type.
Definition: Geometry.h:83
void ConfigureNetworkSimulator(int latencyMs, float packetLoss)
Set network simulation parameters. Called by Network.
Definition: Connection.cpp:1176
void Release(bool clearGPUObjects, bool closeWindow)
Release/clear GPU objects and optionally close the window. Used only on OpenGL.
Definition: OGLGraphics.cpp:2351
bool Empty() const
Return whether is empty.
Definition: LinkedList.h:187
XPathResultSet & operator=(const XPathResultSet &rhs)
Assignment operator.
Definition: XMLElement.cpp:1029
HashMap< String, asIScriptFunction * > functions_
Search cache for functions.
Definition: ScriptFile.h:144
bool IsWithinScissor(const IntRect ¤tScissor) override
Return whether is visible and inside a scissor rectangle and should be rendered.
Definition: Sprite.cpp:83
ViewOverrideFlags viewOverrideFlags_
View override flags.
Definition: Camera.h:264
Node * Head() const
Return the head node.
Definition: List.h:424
void UpdateOffsets()
Update offsets of vertex elements.
Definition: VertexBuffer.cpp:92
unsigned maxLights_
Maximum lights.
Definition: Terrain.h:315
void Reset(int width, int height, int maxWidth=0, int maxHeight=0, bool fastMode=true)
Reset to given width and height and remove all previous allocations.
Definition: AreaAllocator.cpp:47
void MakeCircleGraph(const Vector< Pair< float, Urho3D::SharedPtr< Urho3D::Material > > > &parts, int radius=1, int iterations=300)
Produces a circle graph given a vector of paired (weights and materials)
Definition: CustomGeometry.cpp:249
void SetFogEnd(float end)
Set fog end distance.
Definition: Zone.cpp:127
static bool GetGL3Support()
Return whether is using an OpenGL 3 context. Return always false on Direct3D9 & Direct3D11.
Definition: OGLGraphics.cpp:2119
2D renderer component.
Definition: Renderer2D.h:68
void SetSelection(unsigned start, unsigned length=M_MAX_UNSIGNED)
Set selection. When length is not provided, select until the text ends.
Definition: Text.cpp:371
bool ExecuteRawFile(const String &fileName)
Load and execute script file on file system (i.e. not from resource cache). Return true if successful...
Definition: LuaScript.cpp:298
Texture2D * GetShadowMap(Light *light, Camera *camera, unsigned viewWidth, unsigned viewHeight)
Allocate a shadow map. If shadow map reuse is disabled, a different map is returned each time.
Definition: Renderer.cpp:836
ColorFrame()
Construct with default values.
Definition: ParticleEffect.h:47
bool SetVertexBuffer(unsigned index, VertexBuffer *buffer)
Set a vertex buffer by index.
Definition: Geometry.cpp:67
float fadeStart_
The point relative to the total shadow range where shadow fade begins (0.0 - 1.0).
Definition: Light.h:113
void SetEnabledRecursive(bool enable)
Set enabled state on self and child elements. Unlike SetDeepEnabled this does not remember the elemen...
Definition: UIElement.cpp:909
Allocator template class. Allocates objects of a specific class.
Definition: Allocator.h:71
static void RegisterObject(Context *context)
Register object factory.
Definition: NavigationMesh.cpp:134
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: DropDownList.cpp:236
void SetCamera(Camera *camera)
Set viewport camera.
Definition: Viewport.cpp:74
IntVector2 GetEffectiveRootElementSize(bool applyScale=true) const
Return effective size of the root element, according to UI scale and resolution / custom size.
Definition: UI.cpp:2171
void Sort()
Sort pairs. After sorting the map can be iterated in order until new elements are inserted.
Definition: HashMap.h:478
float GetMasterGain(const String &type) const
Return master gain for a specific sound source type. Unknown sound types will return full gain (1).
Definition: Audio.cpp:206
unsigned readBufferSize_
Bytes in the current read buffer.
Definition: File.h:137
Window mode parameters.
Definition: Graphics.h:128
void CalculateAttenuation()
Calculate attenuation and panning based on current position and listener position.
Definition: SoundSource3D.cpp:149
Ray(const Vector3 &origin, const Vector3 &direction) noexcept
Construct from origin and direction. The direction will be normalized.
Definition: Ray.h:44
~RenderSurface() override
Destruct.
Definition: RenderSurface.cpp:37
float LengthSquared() const
Return squared length.
Definition: Quaternion.h:384
SharedPtr< Text > eventProfilerText_
Event profiling information text.
Definition: DebugHud.h:119
Tile map component.
Definition: TileMapLayer2D.h:44
void SetUpdateEnabled(bool enable)
Enable or disable automatic physics simulation during scene update. Enabled by default.
Definition: PhysicsWorld.cpp:341
Interface class for allowing script objects or functions to subscribe to events.
Definition: ScriptEventListener.h:52
float smoothingConstant_
Motion smoothing constant.
Definition: Scene.h:330
int SystemCommand(const String &commandLine, bool redirectStdOutToLog=false)
Run a program using the command interpreter, block until it exits and return the exit code....
Definition: FileSystem.cpp:373
Button * GetCloseButton() const
Return close button.
Definition: FileSelector.h:108
void reportErrorWarning(const char *warningString) override
Log warning from the physics engine.
Definition: PhysicsWorld.cpp:242
void Release() override
Release the texture.
Definition: OGLTexture2DArray.cpp:76
void SetNumHistoryRows(unsigned rows)
Set command history maximum size, 0 disables history.
Definition: Console.cpp:239
bool SetStyle(const String &styleName, XMLFile *file=nullptr)
Set style from an XML file. Find the style element by name. If the style file is not explicitly provi...
Definition: UIElement.cpp:994
void PreSolve(b2Contact *contact, const b2Manifold *oldManifold) override
Called when contact is updated.
Definition: PhysicsWorld2D.cpp:134
void Commit()
Mark for bounding box and vertex buffer update. Call after modifying the trails.
Definition: RibbonTrail.cpp:889
void SetAutoClearForces(bool enable)
Set auto clear forces.
Definition: PhysicsWorld2D.cpp:415
SharedPtr< Texture2D > texture_
Texture that UIElement will be rendered into.
Definition: UI.h:253
HashMap< String, SharedPtr< ValueAnimationInfo > > attributeAnimationInfos_
Name to attribute animation info mapping.
Definition: ObjectAnimation.h:90
float fov_
Spotlight field of view.
Definition: Light.h:377
Color ReadColor(const XMLElement &element, const String &name) const
Read Color.
Definition: ParticleEffect2D.cpp:530
void UpdateElements()
Update elements to layout properly. Call this after manually adjusting the sub-elements.
Definition: FileSelector.cpp:246
pugi::xml_document * GetDocument() const
Return the pugixml document.
Definition: XMLFile.h:71
void ReleaseJoint()
Release joint.
Definition: Constraint2D.cpp:101
const Vector< String > & GetXMLAttributes() const
Return the XML format attributes. Empty when loaded with binary serialization.
Definition: UnknownComponent.h:68
bool updateEnabled_
Update enabled flag.
Definition: Scene.h:334
bool WriteColor(const Color &value)
Write a color.
Definition: Serializer.cpp:169
unsigned Capacity() const
Return capacity of vector.
Definition: Vector.h:534
const String & GetShaderCacheDir() const
Return shader cache directory, Direct3D only.
Definition: Graphics.h:564
bool LoadColorLUT(Deserializer &source)
Load as color LUT. Return true if successful.
Definition: Image.cpp:980
void SetLength(float length)
Set tube area light length. Works only with PBR shaders.
Definition: Light.cpp:302
TextureAddressMode addressModes_[MAX_COORDS]
Addressing mode.
Definition: Texture.h:227
bool autoResolve_
Multisampling autoresolve flag.
Definition: RenderPath.h:86
float innerAngle_
Inner angle for directional attenuation.
Definition: SoundSource3D.h:86
void SetCustomTriangleMesh(CustomGeometry *custom, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a triangle mesh from CustomGeometry.
Definition: CollisionShape.cpp:677
unsigned GetTotalDataSize() const
Return total data size from all the file entries in the package file.
Definition: PackageFile.h:77
String pixelShaderDefines_
Pixel shader defines.
Definition: RenderPath.h:156
SharedPtr< Viewport > viewport_
Viewport.
Definition: View3D.h:89
void SetAnimationLodBias(float bias)
Set animation LOD bias.
Definition: RibbonTrail.cpp:877
float w_
W coordinate.
Definition: Quaternion.h:461
void MarkMorphsDirty()
Mark morphs to require an update.
Definition: AnimatedModel.cpp:1100
bool operator==(const HashSet< T > &rhs) const
Test for equality with another hash set.
Definition: HashSet.h:252
bool IsLocked() const
Return whether is currently locked.
Definition: IndexBuffer.h:71
LineEdit(Context *context)
Construct.
Definition: LineEdit.cpp:43
IntVector3 GetIntVector3(const String &name) const
Return an IntVector3 attribute, or default if missing.
Definition: XMLElement.cpp:832
void SetDampingRatio(float dampingRatio)
Set damping ratio.
Definition: ConstraintDistance2D.cpp:97
String * stringValue_
String value.
Definition: JSONValue.h:303
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: Terrain.cpp:791
VertexMaskFlags elementMask_
Element mask used so far.
Definition: CustomGeometry.h:172
void FromHSV(float h, float s, float v, float a=1.0f)
Set RGBA values from specified HSV values and alpha.
Definition: Color.cpp:109
bool SetHeightMapInternal(Image *image, bool recreateNow)
Set heightmap image and optionally recreate the geometry immediately. Return true if successful.
Definition: Terrain.cpp:1416
void ReturnToPool(SharedPtr< WorkItem > &item)
Return a work item to the pool.
Definition: WorkQueue.cpp:380
String Get(const String &id)
Return a string in the current language. Returns String::EMPTY if id is empty. Returns id if translat...
Definition: Localization.cpp:130
FontHintLevel GetFontHintLevel() const
Return the current FreeType font hinting level.
Definition: UI.h:206
Material's technique list entry.
Definition: Material.h:56
int WeakRefs() const
Return the array's weak reference count.
Definition: ArrayPtr.h:382
Vector3 GetGravity() const
Return gravity.
Definition: PhysicsWorld.cpp:703
EventHandlerImpl(T *receiver, HandlerFunctionPtr function, void *userData=nullptr)
Construct with receiver and function pointers and userdata.
Definition: Object.h:303
unsigned GetNumTriggers() const
Return number of animation trigger points.
Definition: Animation.h:186
void UpdateSplineTangents() const
Update spline tangents.
Definition: ValueAnimation.cpp:489
Vector2 GetPosition2D() const
Return position in parent space (for Urho2D).
Definition: Node.h:380
float Angle(const Vector3 &rhs) const
Returns the angle between this vector and another vector in degrees.
Definition: Vector3.h:414
void SetOrthoSize(float orthoSize)
Set orthographic mode view uniform size.
Definition: Camera.cpp:138
void SetFov(float fov)
Set vertical field of view in degrees.
Definition: Camera.cpp:130
unsigned otherBodyNodeID_
Other body node ID for serialization.
Definition: Constraint2D.h:102
void SetObstacleAvoidanceTypesAttr(const VariantVector &value)
Set all the obstacle avoidance types configured in the crowd based on the corresponding attribute.
Definition: CrowdManager.cpp:349
PODVector< TrailPoint > points_
Tails.
Definition: RibbonTrail.h:180
T & operator[](const int index)
Subscript the array.
Definition: ArrayPtr.h:326
void SetSoundType(const String &type)
Set sound type, determines the master gain group.
Definition: SoundSource.cpp:272
void SetGravityOverride(const Vector3 &gravity)
Set gravity override. If zero, uses physics world's gravity.
Definition: RigidBody.cpp:449
CompressedLevel GetCompressedLevel(unsigned index) const
Return a compressed mip level.
Definition: Image.cpp:1966
bool IsDataLost() const
Return true when one of the texture has a data loss.
Definition: FontFace.cpp:87
bool hasScenePasses_
Has scene passes flag. If no scene passes, view can be defined without a valid scene or camera to onl...
Definition: View.h:380
String GetPreferredResourceDir(const String &path) const
Return either the path itself or its parent, based on which of them has recognized resource subdirect...
Definition: ResourceCache.cpp:805
static const Vector2 DOWN
(0,-1) vector.
Definition: Vector2.h:387
float speed_
The Speed of movement along the Spline.
Definition: SplinePath.h:128
@ JSONNT_NAN
Not a number.
Definition: JSONValue.h:53
HashMap< String, Variant > storedAttributes_
Storage for attributes while script object is being hot-reloaded.
Definition: ScriptInstance.h:208
void SetRegionMinSize(float size)
Set region minimum size.
Definition: NavigationMesh.cpp:276
const String & GetName() const
Return pass name.
Definition: Technique.h:84
unsigned GetUsedVertexAttributes() const
Return attribute location use bitmask.
Definition: OGLShaderProgram.h:74
bool GetHighDPI() const
Return whether window is high DPI.
Definition: Graphics.h:369
OggVorbisSoundStream(const Sound *sound)
Construct from an Ogg Vorbis compressed sound.
Definition: OggVorbisSoundStream.cpp:35
void SetExecuteConsoleCommands(bool enable)
Set whether to execute engine console commands as script code.
Definition: Script.cpp:223
Vector2 velocity_
Velocity.
Definition: ParticleEmitter2D.h:58
void DestroyTree()
Destroys the solver's tree.
Definition: IKSolver.cpp:264
@ CA_STATE_OFFMESH
The agent is traversing an off-mesh connection.
Definition: CrowdAgent.h:55
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Drawable.cpp:366
bool EndLoadFromXMLFile()
End load from XML file.
Definition: SpriteSheet2D.cpp:225
const SLNet::AddressOrGUID & GetAddressOrGUID() const
Return the RakNet address/guid.
Definition: Connection.h:173
Variant GetVariant() const
Return a variant.
Definition: JSONValue.cpp:400
unsigned autoCompletePosition_
Command auto complete current position.
Definition: Console.h:184
int GetIndent() const
Return horizontal indentation.
Definition: UIElement.h:622
Quaternion initialRotation_
Reset rotation.
Definition: Skeleton.h:68
String shaderExtension_
File extension for shaders.
Definition: Graphics.h:853
bool PositionToTileIndex(int &x, int &y, const Vector2 &position) const
Convert position to tile index, if out of map return false.
Definition: TileMap2D.cpp:172
void ThreadFunction() override
Resource background loading loop.
void RotateAround(const Vector3 &point, const Quaternion &delta, TransformSpace space=TS_LOCAL)
Rotate around a point in the chosen transform space.
Definition: Node.cpp:615
BoundingBox(const Sphere &sphere)
Construct from a sphere.
Definition: BoundingBox.h:114
unsigned clearStencil_
Clear stencil value. Affects clear command only.
Definition: RenderPath.h:172
bool GetAlphaToCoverage() const
Return whether alpha-to-coverage is enabled.
Definition: Graphics.h:504
void SetDampingForce(float force)
Set particle velocity damping force.
Definition: ParticleEffect.cpp:505
float timeStep_
Timestep in seconds.
Definition: Timer.h:125
void SetHotSpot(const IntVector2 &hotSpot)
Set hotspot for positioning and rotation.
Definition: Sprite.cpp:152
CollisionGeometryDataCache & GetTriMeshCache()
Return trimesh collision geometry cache.
Definition: PhysicsWorld.h:269
float GetRange() const
Return ProgressBar range.
Definition: ProgressBar.h:66
bool reverseCulling_
Culling reverse flag.
Definition: OcclusionBuffer.h:201
static void RegisterObject(Context *context)
Register object factory.
Definition: UnknownComponent.cpp:90
Per-object attribute state for network replication, allocated on demand.
Definition: ReplicationState.h:121
int exitCode_
Application exit code.
Definition: Application.h:68
bool GetAnimationEnabled() const
Return animation enabled.
Definition: Animatable.h:106
Physics collision shape component.
Definition: CollisionShape.h:143
float currentTime_
Current time.
Definition: SpriterInstance2D.h:105
void WriteLatestDataUpdate(Serializer &dest, unsigned char timeStamp)
Write a latest data network update.
Definition: Serializable.cpp:797
SharedPtr< Image > ConvertToRGBA() const
Return image converted to 4-component (RGBA) to circumvent modern rendering API's not supporting e....
Definition: Image.cpp:1896
void Reset()
Reset the timer.
Definition: Timer.cpp:210
void UpdateAnimation(float timeStep)
Update animation.
Definition: AnimatedSprite2D.cpp:252
static void RegisterObject(Context *context)
Register object factory.
Definition: FileSelector.cpp:138
static void Write(int level, const String &message)
Write to the log. If logging level is higher than the level of the message, the message is ignored.
Definition: Log.cpp:138
Vector3 GetPosition() const
Return rigid body position in world space.
Definition: RigidBody.cpp:602
T * Get() const
Return the raw pointer.
Definition: ArrayPtr.h:159
const float * Data() const
Return float data.
Definition: Vector4.h:207
void SetPath(const String &path)
Set current path.
Definition: FileSelector.cpp:193
void SetBorderColor(const Color &color)
Set border color for border addressing mode.
Definition: Texture.cpp:98
void SetAwake(bool awake)
Set awake.
Definition: RigidBody2D.cpp:283
Quaternion rotation_
Constraint rotation.
Definition: Constraint.h:183
FileWatcher(Context *context)
Construct.
Definition: FileWatcher.cpp:52
void ResetRoot()
Reset root pointer recursively. Called when the whole octree is being destroyed.
Definition: Octree.cpp:192
FillMode fillMode_
Polygon fill mode.
Definition: Material.h:301
void Define(const Rect &rect)
Define from another rect.
Definition: Rect.h:138
static const IntVector3 FORWARD_RIGHT_UP
(2, 0, 1) coordinate system.
Definition: RaycastVehicle.h:180
CrowdAgentTargetState GetTargetState() const
Return the agent's target state.
Definition: CrowdAgent.cpp:497
2x2 matrix for rotation and scaling.
Definition: Matrix2.h:31
void SetChainLength(unsigned chainLength)
Sets the number of segments that will be affected. 0 Means all nodes between this effector and the ne...
Definition: IKEffector.cpp:158
SLNet::RakPeerInterface * peer_
Raknet peer object.
Definition: Connection.h:339
float setWeightTtl_
Set weight command time-to-live.
Definition: AnimationController.h:70
bool LoadFile(const String &fileName)
Load resource from file.
Definition: Resource.cpp:87
~Constraint() override
Destruct.
Definition: Constraint.cpp:74
ShaderVariation(Shader *owner, ShaderType type)
Construct.
Definition: ShaderVariation.cpp:58
float z_
Z coordinate.
Definition: Vector3.h:478
void RemoveRootBone()
Remove (old) skeleton root bone.
Definition: AnimatedModel.cpp:1075
void Pop()
Remove the last JSON value.
Definition: JSONValue.cpp:210
SLNet::NatPunchthroughClient * natPunchthroughServerClient_
NAT punchtrough client for the server.
Definition: Network.h:186
bool SetVertexBuffers(const Vector< SharedPtr< VertexBuffer > > &buffers, const PODVector< unsigned > &morphRangeStarts, const PODVector< unsigned > &morphRangeCounts)
Set vertex buffers and their morph ranges.
Definition: Model.cpp:491
float period_
Period for repeating calls.
Definition: ScriptEventListener.h:40
void GetDependencyNodes(PODVector< Node * > &dest) override
Return the depended on nodes to order network updates.
Definition: Constraint.cpp:132
~NamedPipe() override
Destruct and close.
Definition: NamedPipe.cpp:70
void RebuildTree()
Builds the solver's tree to match the scene graph's tree. If a tree already exists,...
Definition: IKSolver.cpp:272
SharedPtr< Technique > CloneWithDefines(const String &vsDefines, const String &psDefines)
Return a clone with added shader compilation defines. Called internally by Material.
Definition: Technique.cpp:497
bool GetAllowSleeping() const
Return allow sleeping.
Definition: PhysicsWorld2D.cpp:680
bool BuildTreeToEffector(IKEffector *effector)
Builds a chain of nodes up to the node of the specified effector component.
Definition: IKSolver.cpp:312
unsigned GetBoneIndex(const String &boneName) const
Return index of the bone by name. Return M_MAX_UNSIGNED if not found.
Definition: Skeleton.cpp:173
Object * GetSubsystem(StringHash type) const
Return subsystem by type.
Definition: Context.cpp:354
bool StartServer(unsigned short port, unsigned int maxConnections=128)
Start a server on a port using UDP protocol. Return true if successful.
Definition: Network.cpp:421
void SetTangentialAccelVariance(float tangentialAccelVariance)
Set tangential acceleration variance.
Definition: ParticleEffect2D.cpp:359
StringMap map_
Hash to string map.
Definition: StringHashRegister.h:59
IntRect viewRect_
Viewport rectangle.
Definition: View.h:346
const IntRect & GetRectangle() const
Return rectangle.
Definition: Sprite2D.h:68
Vector3 center_
World bounding box center.
Definition: Octree.h:144
bool IsChecked() const
Return whether is checked.
Definition: CheckBox.h:59
IntVector3 GetIntVector3() const
Return IntVector3, for string type.
Definition: PListFile.cpp:232
TrailType GetTrailType() const
Return how the trail behave.
Definition: RibbonTrail.h:158
void Swap(String &str)
Swap with another string.
Definition: Str.cpp:483
void SetMaxLodLevels(unsigned levels)
Set maximum number of LOD levels for terrain patches. This can be between 1-4.
Definition: Terrain.cpp:208
bool IsCompressed() const
Return whether is compressed.
Definition: Image.h:174
String GetAnimation(unsigned index) const
Return animation name.
Definition: AnimationSet2D.cpp:167
WeakPtr< ScriptFile > scriptFile_
Script file.
Definition: ScriptInstance.h:194
SharedArrayPtr< T > Lock() const
Convert to shared array pointer. If expired, return a null shared array pointer.
Definition: ArrayPtr.h:292
void Blit(Image *dest, int x, int y, int width, int height, Image *source, int sourceX, int sourceY, int components)
Blit.
Definition: FontFaceBitmap.cpp:374
File selector's list entry (file or directory).
Definition: FileSelector.h:42
const Vector3 & GetTargetVelocity() const
Return the agent's requested target velocity.
Definition: CrowdAgent.h:134
void Update(const FrameInfo &frame)
Update and reinsert drawable objects.
Definition: Octree.cpp:364
unsigned size_
Parameter size. Used only on Direct3D11 to calculate constant buffer size.
Definition: ShaderVariation.h:67
Variant(const String &type, const String &value)
Construct from type and value.
Definition: Variant.h:524
Node * node_
Scene node.
Definition: Component.h:138
void SetGravity(const Vector3 &gravity)
Set gravity.
Definition: PhysicsWorld.cpp:320
AnimationKeyFrame()
Construct.
Definition: Animation.h:49
@ USE_UPDATE
Bitmask for using the scene update event.
Definition: LogicComponent.h:38
Vector3 GetPosition() const
Return the agent's position.
Definition: CrowdAgent.cpp:473
const ShaderParameter * GetParameter(StringHash param) const
Return the info for a shader parameter, or null if does not exist.
Definition: OGLShaderProgram.cpp:338
IntVector2 minSize_
Minimum size.
Definition: UIElement.h:775
void SetCollisionLayerAndMask(unsigned layer, unsigned mask)
Set collision group and mask.
Definition: RigidBody.cpp:499
static void RegisterObject(Context *)
Register with engine context.
Definition: DynamicNavigationMesh.cpp:228
void SetFrequencyHz(float frequencyHz)
Set frequency Hz.
Definition: ConstraintDistance2D.cpp:82
ObjectAnimation(Context *context)
Construct.
Definition: ObjectAnimation.cpp:46
WeakPtr< Terrain > owner_
Parent terrain.
Definition: TerrainPatch.h:126
void CalculateLodLevels()
Choose LOD levels based on distance.
Definition: StaticModel.cpp:420
PODVector< unsigned > selections_
Current selection.
Definition: ListView.h:170
Plane(const Vector4 &plane) noexcept
Construct from a 4-dimensional vector, where the w coordinate is the plane parameter.
Definition: Plane.h:56
void CreateFixture()
Create fixture.
Definition: CollisionShape2D.cpp:204
bool EndLoadSpriter()
Finish load scml.
Definition: AnimationSet2D.cpp:348
VariantMap * GetVariantMapPtr()
Return a pointer to a modifiable variant map or null on type mismatch.
Definition: Variant.h:1360
UI element which allows sub-pixel positioning and size, as well as rotation. Only other Sprites shoul...
Definition: Sprite.h:32
void RemoveAllParticles()
Remove all current particles.
Definition: ParticleEmitter.cpp:323
void SetWheelSkidInfo(int wheel, float factor)
Set sliding factor 0 <= x <= 1. The less the value, more sliding.
Definition: RaycastVehicle.cpp:664
List(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: List.h:191
String appliedStyle_
Applied style.
Definition: UIElement.h:744
bool Save(Serializer &dest) const override
Save resource with default indentation (one tab). Return true if successful.
Definition: XMLFile.cpp:132
void AddSphereSector(const Sphere &sphere, const Quaternion &rotation, float angle, bool drawLines, const Color &color, bool depthTest=true)
Add a sphere sector. Angle ranges from 0 to 360. Identity Quaternion yields the filled portion of the...
Definition: DebugRenderer.cpp:281
IntVector2 WorldToHeightMap(const Vector3 &worldPosition) const
Convert world position to heightmap pixel position. Note that the internal height data representation...
Definition: Terrain.cpp:622
bool GetSmoothing() const
Return whether smoothing is in use.
Definition: Terrain.h:123
unsigned ToHash() const
Return hash value.
Definition: FlagSet.h:232
XMLElement GetOrCreateRoot(const String &name)
Get the root element if it has matching name, otherwise create it and clear the document.
Definition: XMLFile.cpp:151
int GetMonitor() const
Return the current monitor index. Effective on in fullscreen.
Definition: Graphics.h:378
Vector< Particle2D > particles_
Particles.
Definition: ParticleEmitter2D.h:159
Base class for a value animation instance, which includes animation runtime information and updates t...
Definition: ValueAnimationInfo.h:39
bool GetBool() const
Return bool or false on type mismatch.
Definition: Variant.h:1146
float GetDetailSampleMaxError() const
Return detail sampling maximum error.
Definition: NavigationMesh.h:234
bool Play(const String &name, unsigned char layer, bool looped, float fadeInTime=0.0f)
Play an animation and set full target weight. Name must be the full resource name....
Definition: AnimationController.cpp:159
bool Null() const
Check if the pointer is null.
Definition: Ptr.h:643
Material * GetMaterial() const
Return material.
Definition: ParticleEffect.h:227
void SetShadowCascade(const CascadeParameters ¶meters)
Set directional light cascaded shadow parameters.
Definition: Light.cpp:372
void UpdateVertexBuffer(const FrameInfo &frame)
Rewrite billboard vertex buffer.
Definition: BillboardSet.cpp:577
void OptimizeLightByScissor(Light *light, Camera *camera)
Optimize a light by scissor rectangle.
Definition: Renderer.cpp:1372
void SetEnableLimit(bool enableLimit)
Set enable limit.
Definition: ConstraintPrismatic2D.cpp:84
FlagSet & operator|=(const Enum value)
Bitwise OR against Enum value.
Definition: FlagSet.h:90
void SetSpeed(float speed)
Set speed.
Definition: ParticleEffect2D.cpp:309
UIElement * GetParent() const
Return parent element.
Definition: UIElement.h:579
@ JSON_NUMBER
JSON number type.
Definition: JSONValue.h:40
int GetAgentCrowdId() const
Return the agent id.
Definition: CrowdAgent.h:148
float GetShadowMaxExtrusion() const
Return maximum shadow extrusion distance for directional lights.
Definition: Light.h:286
void HandleMouseMove(StringHash eventType, VariantMap &eventData)
Handle mouse move event.
Definition: UI.cpp:1794
const Vector2 & GetOwnerBodyAnchor() const
Return owner body anchor.
Definition: ConstraintPulley2D.h:61
Node * Head() const
Return the head node.
Definition: HashMap.h:622
void SetAnimationTime(float time)
Set time position of all attribute animations or an object animation manually. Automatic update shoul...
Definition: Animatable.cpp:276
void AddManualDrawable(Drawable *drawable)
Add a drawable manually.
Definition: Octree.cpp:477
float y_
Y coordinate.
Definition: Vector4.h:227
float GetAspectRatio() const
Return spotlight aspect ratio.
Definition: Light.h:259
static void ConstructElements(T *dest, RandomIteratorT start, RandomIteratorT end, CopyTag)
Copy-construct elements.
Definition: Vector.h:552
void Render()
Render after frame update.
Definition: Engine.cpp:705
VariantMap GetVariantMap() const
Return a variant map.
Definition: JSONValue.cpp:573
float edgeMaxLength_
Edge max length.
Definition: NavigationMesh.h:330
ResourceRef GetEffectAttr() const
Set particles effect attribute.
Definition: ParticleEmitter.cpp:364
Vector3 Axis() const
Return rotation axis.
Definition: Quaternion.cpp:224
String name_
Name of the parameter.
Definition: ShaderVariation.h:52
int height_
Buffer height.
Definition: OcclusionBuffer.h:191
static void RegisterObject(Context *context)
Register object factory.
Definition: Sound.cpp:79
void SetOcclusionBufferSize(int size)
Set occluder buffer width.
Definition: Renderer.cpp:491
const T & Front() const
Return first key.
Definition: HashSet.h:512
void MixMonoToMonoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix mono sample to mono buffer interpolated.
Definition: SoundSource.cpp:759
bool GetTileSwapXY() const
Return tile swap X and Y.
Definition: TileMapDefs2D.h:197
unsigned rowSize_
Row size in bytes.
Definition: Image.h:75
void SetOverride(bool enable)
Set override mode. If camera is inside an override zone, that zone will be used for all rendered obje...
Definition: Zone.cpp:166
VariantType GetType() const
Return value's type.
Definition: Variant.h:1329
CollisionGeometryDataCache & GetGImpactTrimeshCache()
Return GImpact trimesh collision geometry cache.
Definition: PhysicsWorld.h:275
unsigned vbRef_
Vertex buffer ref.
Definition: Model.h:98
bool LookAt(const Vector3 &target, const Vector3 &up=Vector3::UP, TransformSpace space=TS_WORLD)
Look at a target position in the chosen transform space. Note that the up vector is always specified ...
Definition: Node.cpp:670
void SetSprite(Sprite2D *sprite)
Set sprite.
Definition: ParticleEffect2D.cpp:299
Crowd agent component, requires a CrowdManager component in the scene. When not set explicitly,...
Definition: CrowdAgent.h:74
Vector4 GetClipPlaneAttr() const
Return clipping plane attribute.
Definition: Camera.cpp:631
unsigned numBatches_
Number of batches this frame.
Definition: Graphics.h:763
static void RegisterObject(Context *context)
Register object factory. StaticModel must be registered first.
Definition: Skybox.cpp:46
void SetCollisionMask(unsigned mask)
Set collision mask.
Definition: RigidBody.cpp:489
ShaderVariation * GetVariation(ShaderType type, const String &defines)
Return a variation with defines. Separate multiple defines with spaces.
Definition: Shader.cpp:123
SharedPtr< Texture2D > LoadFaceTexture(const SharedPtr< Image > &image)
Load font face texture from image resource.
Definition: FontFace.cpp:109
static const Matrix2 ZERO
Zero matrix.
Definition: Matrix2.h:253
DbResult()
Default constructor constructs an empty result object.
Definition: ODBCResult.h:39
VertexElementType type_
Data type of element.
Definition: GraphicsDefs.h:212
IntVector2 screenPosition_
Screen position.
Definition: UIElement.h:740
void DefineColor(const Color &color)
Define a vertex color.
Definition: CustomGeometry.cpp:559
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Sound.cpp:84
void SetNetPositionAttr(const Vector3 &value)
Set network position attribute.
Definition: Node.cpp:1456
void UnregisterAllRemoteEvents()
Unregister all remote events.
Definition: Network.cpp:608
String pass_
Scene pass name.
Definition: RenderPath.h:144
float GetWheelRadius(int wheel) const
Get wheel radius.
Definition: RaycastVehicle.cpp:562
void RemoveAllEventHandlers() override
Remove all scripted event handlers.
Definition: LuaScriptInstance.cpp:356
BorderImage * GetKnob() const
Return knob element.
Definition: Slider.h:88
CompareMode GetDepthTestMode() const
Return depth compare mode.
Definition: Technique.h:96
void Insert(T *element)
Insert an element at the end.
Definition: LinkedList.h:103
ConstraintMouse2D(Context *context)
Construct.
Definition: ConstraintMouse2D.cpp:37
void HandleRenderSurfaceUpdate(StringHash eventType, VariantMap &eventData)
Handle render surface update event.
Definition: Texture2DArray.cpp:198
void SetDefaultToolTipDelay(float delay)
Set tooltip default display delay in seconds.
Definition: UI.cpp:659
IntRect GetIntRect() const
Return IntRect, for string type.
Definition: PListFile.cpp:212
const VertexElement * GetElement(VertexElementSemantic semantic, unsigned char index=0) const
Return vertex element, or null if does not exist.
Definition: VertexBuffer.cpp:116
void GetDrawables(PODVector< Drawable2D * > &drawables, Node *node)
Get all drawables in node.
Definition: Renderer2D.cpp:387
void SetSprite(Sprite2D *sprite)
Set sprite.
Definition: ParticleEmitter2D.cpp:108
int GetRowStartPosition(unsigned rowIndex) const
Return row start X position.
Definition: Text.cpp:763
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: DecalSet.cpp:238
void Reset()
Reset movement along the path.
Definition: SplinePath.cpp:236
bool GetReadableDepthSupport() const
Return whether a readable hardware depth format is available.
Definition: Graphics.h:432
LuaScriptObjectMethod
Lua Script object methods.
Definition: LuaScriptInstance.h:41
AreaAllocator()
Default construct with empty size.
Definition: AreaAllocator.cpp:32
Vector< PODVector< GeometryDesc > > loadGeometries_
Geometry definitions for asynchronous loading.
Definition: Model.h:230
Vector4 GetVector(const String &name) const
Return any Vector attribute as Vector4. Missing coordinates will be zero.
Definition: XMLElement.cpp:965
void SetColor(const Color &color, bool overrideAlpha=false)
Set new color for the batch. Overrides gradient.
Definition: UIBatch.cpp:54
Engine(Context *context)
Construct.
Definition: Engine.cpp:95
AnimationSet2D(Context *context)
Construct.
Definition: AnimationSet2D.cpp:104
const Vector2 & GetVector2() const
Return Vector2 or zero on type mismatch.
Definition: Variant.h:1179
Vector2 LocalToWorld2D(const Vector2 &vector) const
Convert a local space position or rotation to world space (for Urho2D).
Definition: Node.cpp:1200
HashNodeBase * ptr_
Node pointer.
Definition: HashBase.h:93
void Clear()
Reset to zero size.
Definition: VectorBuffer.cpp:123
unsigned Value() const
Return hash value.
Definition: StringHash.h:90
SharedPtr< Material > material_
Material used for custom rendering.
Definition: BorderImage.h:133
unsigned totalFragments_
Total number of fragments.
Definition: Connection.h:98
Vector2 Min() const
Return left-top corner position.
Definition: Rect.h:241
unsigned GetSize() const
Return size.
Definition: Deserializer.h:62
Connection * GetOwner() const
Return owner connection in networking.
Definition: Node.h:374
void ApplyHeightMap()
Apply changes from the heightmap image.
Definition: Terrain.cpp:512
T & operator*() const
Dereference the array.
Definition: ArrayPtr.h:318
const Vector2 & GetSourcePositionVariance() const
Return source position variance.
Definition: ParticleEffect2D.h:140
Iterator End()
Return iterator to the end.
Definition: Vector.h:1125
List(List< T > &&list) noexcept
Move-construct from another list.
Definition: List.h:185
void SetRadius(float radius)
Set the agent's radius.
Definition: CrowdAgent.cpp:399
String line_
Text line.
Definition: LineEdit.h:134
bool IsDynamic() const
Return whether vertex buffer dynamic mode is enabled.
Definition: CustomGeometry.h:138
void SetClassName(const String &className)
Set class name only. Recreate object if necessary.
Definition: ScriptInstance.cpp:265
ConstIterator(Node *ptr)
Construct with a node pointer.
Definition: List.h:113
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: LuaScriptInstance.cpp:509
void SetMaxInactiveFps(int fps)
Set maximum frames per second when the application does not have input focus.
Definition: Engine.cpp:573
b2MassData massData_
Box2D mass data.
Definition: RigidBody2D.h:175
unsigned GetNumTriangles() const
Return number of rendered triangles.
Definition: OcclusionBuffer.h:141
void Erase(unsigned pos, unsigned length=1)
Erase a range of elements.
Definition: Vector.h:338
ListIteratorBase()
Construct.
Definition: ListBase.h:57
void Clear()
Clear the list.
Definition: List.h:346
VectorBuffer attrBuffer_
Attribute buffer for network updates.
Definition: Node.h:71
Queue item for background loading of a resource.
Definition: BackgroundLoader.h:40
WeakPtr< RigidBody > rigidBody_
Rigid body.
Definition: CollisionShape.h:292
int multiSample_
Multisampling level.
Definition: Texture.h:235
const Quaternion & GetRotation() const
Return rotation in parent space.
Definition: Node.h:383
bool IsExiting() const
Return whether exit has been requested.
Definition: Engine.h:103
void Merge(const Rect &rect)
Merge a rect.
Definition: Rect.h:171
int GetScriptObjectRef() const
Return Lua reference to script object.
Definition: LuaScriptInstance.h:128
float GetLodBias() const
Return LOD bias.
Definition: Drawable.h:192
bool GetPauseMinimized() const
Return whether to pause update events and audio when minimized.
Definition: Engine.h:94
~Vector()
Destruct.
Definition: Vector.h:104
const VariantVector & GetKnots() const
Return the knots of the spline.
Definition: Spline.h:80
void MarkInView(const FrameInfo &frame)
Mark in view. Also clear the light list.
Definition: Drawable.cpp:296
@ LM_HORIZONTAL
Layout child elements horizontally and resize them to fit. Resize element if necessary.
Definition: UIElement.h:90
Doubly-linked list iterator base class.
Definition: ListBase.h:54
Cube texture resource.
Definition: TextureCube.h:36
bool optimizeBufferSize_
Optimize buffer sizes flag.
Definition: DecalSet.h:239
RefCount * RefCountPtr() const
Return pointer to the RefCount structure.
Definition: Ptr.h:501
void SetOtherBodyAnchor(const Vector2 &anchor)
Set other body anchor point.
Definition: ConstraintPulley2D.cpp:97
const Vector3 & GetOtherPosition() const
Return constraint position relative to other body.
Definition: Constraint.h:122
bool GetUseReflection() const
Return whether is using reflection.
Definition: Camera.h:176
void Release() override
Release buffer.
Definition: OGLVertexBuffer.cpp:56
bool GetAnisotropySupport() const
Return whether anisotropic texture filtering is supported.
Definition: Graphics.h:426
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: BorderImage.cpp:231
Pass * pass_
Material pass.
Definition: Batch.h:102
Sphere(const Polyhedron &poly) noexcept
Construct from a polyhedron.
Definition: Sphere.h:74
bool StartWatching(const String &pathName, bool watchSubDirs)
Start watching a directory. Return true if successful.
Definition: FileWatcher.cpp:77
unsigned maxSortedInstances_
Maximum sorted instances.
Definition: Batch.h:263
bool Append(XMLFile *file)
Append data from an XML file. Return true if successful.
Definition: RenderPath.cpp:329
void DeleteFramebuffer(unsigned fbo)
Delete a framebuffer using either extension or core functionality. Used only on OpenGL.
Definition: OGLGraphics.cpp:3267
const ProfilerBlock * GetCurrentBlock()
Return the current profiling block.
Definition: Profiler.h:214
FillMode
Fill mode.
Definition: GraphicsDefs.h:107
const AnimationTrack * track_
Animation track.
Definition: AnimationState.h:59
bool relative_
Billboards relative flag.
Definition: ParticleEffect.h:365
bool Copy(const String &srcFileName, const String &destFileName)
Copy a file. Return true if successful.
Definition: FileSystem.cpp:472
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: UISelectable.cpp:42
bool sorted_
Billboards sorted flag.
Definition: ParticleEffect.h:369
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: LineEdit.cpp:537
HashSet< StringHash > resources_
Resource name hashes left to load.
Definition: Scene.h:75
CrowdAgentState
Definition: CrowdAgent.h:51
Texture * texture_
Texture.
Definition: UIBatch.h:83
int touchID_
Touch (finger) ID.
Definition: Input.h:63
unsigned GetStencilCompareMask() const
Return stencil compare bitmask.
Definition: Graphics.h:555
RefCounted * GetPtr() const
Return a RefCounted pointer or null on type mismatch. Will return null if holding a void pointer,...
Definition: Variant.h:1268
void SetAnchor(const Vector2 &anchor)
Set anchor.
Definition: ConstraintRevolute2D.cpp:60
unsigned GetElementOffset(VertexElementType type, VertexElementSemantic semantic, unsigned char index=0) const
Return offset of a element with specific type within vertex, or M_MAX_UNSIGNED if element does not ex...
Definition: VertexBuffer.h:100
~Skybox() override
Destruct.
bool IsSceneLoaded() const
Return whether the scene is loaded and ready to receive server updates.
Definition: Connection.h:204
const Matrix3x4 & GetView() const
Return the view transform.
Definition: DebugRenderer.h:158
int FloorToInt(T x)
Round value down. Returns integer value.
Definition: MathDefs.h:191
Base class for sound streams.
Definition: SoundStream.h:31
UniquePtr< pugi::xpath_query > query_
Pugixml xpath_query.
Definition: XMLElement.h:402
WeakPtr< RigidBody > ownBody_
Own rigid body.
Definition: Constraint.h:173
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Zone.cpp:93
bool useReflection_
Reflection mode enabled flag.
Definition: Camera.h:280
Vector4(float x, float y, float z, float w) noexcept
Construct from coordinates.
Definition: Vector4.h:56
bool IsAutoVisibleOnError() const
Return true when console is set to automatically visible when receiving an error log message.
Definition: Console.h:96
float x_
X coordinate.
Definition: Vector3.h:474
bool IsSDFFont() const
Is signed distance field font.
Definition: Font.h:76
void UpdateCharLocations()
Update cached character locations after text update, or when text alignment or indent has changed.
Definition: Text.cpp:679
Per-thread geometry, light and scene range collection structure.
Definition: View.h:95
bool IsNumber() const
Check is number.
Definition: JSONValue.h:183
bool ResolveToTexture(Texture2D *destination, const IntRect &viewport)
Resolve multisampled backbuffer to a texture rendertarget. The texture's size should match the viewpo...
Definition: OGLGraphics.cpp:692
~ConstraintGear2D() override
Destruct.
SharedArrayPtr< T > & operator=(const SharedArrayPtr< T > &rhs)
Assign from another shared array pointer.
Definition: ArrayPtr.h:67
FrustumPlane
Frustum planes.
Definition: Frustum.h:37
bool SetHeightMap(Image *image)
Set heightmap image. Dimensions should be a power of two + 1. Uses 8-bit grayscale,...
Definition: Terrain.cpp:244
UpdateEventFlags currentEventMask_
Current event subscription mask.
Definition: LogicComponent.h:110
void SetParticleLifeSpan(float particleLifeSpan)
Set particle lifespan.
Definition: ParticleEffect2D.cpp:319
void UpdateTargetNodePosition()
Intended to be used by IKSolver. Copies the positions/rotations of the target node into the effector.
Definition: IKEffector.cpp:247
ShaderProgram(Graphics *graphics, ShaderVariation *vertexShader, ShaderVariation *pixelShader)
Construct.
Definition: OGLShaderProgram.cpp:61
StretchableSprite2D(Context *context)
Construct.
Definition: StretchableSprite2D.cpp:122
ProgressBar(Context *context)
Construct.
Definition: ProgressBar.cpp:37
bool Delete(const String &fileName)
Delete a file. Return true if successful.
Definition: FileSystem.cpp:520
bool ambientGradient_
Ambient gradient mode flag.
Definition: Zone.h:144
TextureUsage usage_
Texture usage type.
Definition: Texture.h:211
FillMode fillMode_
Polygon fill mode.
Definition: Graphics.h:821
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: AnimatedModel.cpp:161
void SetMaxDoubleClickDistance(float distPixels)
Set max screen distance in pixels between double click clicks.
Definition: UI.cpp:644
unsigned NextUTF8Char(unsigned &byteOffset) const
Return next Unicode character from UTF8 content and increase byte offset.
Definition: Str.cpp:812
Iterator End()
Return iterator to the end.
Definition: HashSet.h:506
float radius_
Agent's radius, if 0 the navigation mesh's setting will be used.
Definition: CrowdAgent.h:220
void SetNearDistance(float distance)
Set near distance. Inside this range sound will not be attenuated.
Definition: SoundSource3D.cpp:125
unsigned faceMemoryUse_[MAX_CUBEMAP_FACES]
Memory use per face.
Definition: TextureCube.h:87
void ClearAppStats()
Clear all application-specific stats.
Definition: DebugHud.cpp:298
long long intervalTime_
Time during current profiler interval.
Definition: Profiler.h:158
bool IsNecessary(const RenderPathCommand &command)
Check if a command is enabled and has content to render. To be called only after render update has co...
Definition: View.cpp:1899
void SetMaxNetworkAngularVelocity(float velocity)
Set maximum angular velocity for network replication.
Definition: PhysicsWorld.cpp:365
TextureFilterMode GetDefaultTextureFilterMode() const
Return default texture filtering mode.
Definition: Graphics.h:486
bool operator==(const BatchGroupKey &rhs) const
Test for equality with another batch group key.
Definition: Batch.h:208
unsigned checksum_
Package file checksum.
Definition: PackageFile.h:100
const void * vertexData_
Vertex data pointer.
Definition: OcclusionBuffer.h:70
SharedPtr< ValueAnimation > animation_
Attribute animation.
Definition: ValueAnimationInfo.h:88
static const Color MAGENTA
Opaque magenta color.
Definition: Color.h:279
bool operator==(const SharedPtr< U > &rhs) const
Test for equality with another shared pointer.
Definition: Ptr.h:155
unsigned format_
Texture format.
Definition: RenderPath.h:78
const T first_
Key.
Definition: HashMap.h:76
void SetAreaID(unsigned newID)
Set the area id for this volume.
Definition: NavArea.cpp:60
Rendering path definition. A sequence of commands (e.g. clear screen, draw objects with specific pass...
Definition: RenderPath.h:190
WrapMode
Animation wrap mode.
Definition: AnimationDefs.h:31
void SetBorder(const IntRect &border)
Set border as number of pixels from each side.
Definition: StretchableSprite2D.cpp:135
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: XMLFile.cpp:79
void SetScale(float scale)
Set uniform scale in parent space.
Definition: Node.cpp:463
VariantVector GetAnimationsAttr() const
Return animation control structures attribute.
Definition: AnimationController.cpp:746
AnimationTriggerPoint * GetTrigger(unsigned index)
Return a trigger point by index.
Definition: Animation.cpp:418
bool operator==(const SharedArrayPtr< T > &rhs) const
Test for equality with another shared array pointer.
Definition: ArrayPtr.h:120
float GetMotorSpeed() const
Return motor speed.
Definition: ConstraintPrismatic2D.h:82
unsigned memoryUse_
Memory use in bytes.
Definition: Resource.h:108
void SetMaterial(Material *material)
Set material for custom rendering.
Definition: BorderImage.cpp:242
void SetOptimizeBufferSize(bool enable)
Set whether to optimize GPU buffer sizes according to current amount of decals. Default false,...
Definition: DecalSet.cpp:290
const IntVector2 & GetMinSize() const
Return minimum size.
Definition: UIElement.h:421
Stored occlusion render job.
Definition: OcclusionBuffer.h:65
void Clear()
Clear the buffer.
Definition: OcclusionBuffer.cpp:152
void CopyMorphVertices(void *destVertexData, void *srcVertexData, unsigned vertexCount, VertexBuffer *destBuffer, VertexBuffer *srcBuffer)
Copy morph vertices.
Definition: AnimatedModel.cpp:1181
bool SaveWEBP(const String &fileName, float compression=0.0f) const
Save in WebP format with minimum (fastest) or specified compression. Return true if successful....
Definition: Image.cpp:1381
void SetMaxLights(unsigned num)
Set maximum number of per-pixel lights for patches. Default 0 is unlimited.
Definition: Terrain.cpp:464
bool Create()
Create buffer.
Definition: OGLVertexBuffer.cpp:229
void RestoreScriptAttributes()
Restore values of script attributes after hot reload is complete.
Definition: ScriptInstance.cpp:743
void OnSetAnimation(Animation *animation, LoopMode loopMode=Default)
Handle set animation.
Definition: SpriterInstance2D.cpp:181
U second_
Second value.
Definition: Pair.h:76
void SetScriptFile(ScriptFile *scriptFile)
Set script file only. Recreate object if necessary.
Definition: ScriptInstance.cpp:240
MemoryBuffer(void *data, unsigned size)
Construct with a pointer and size.
Definition: MemoryBuffer.cpp:30
bool AddTriangles(const Matrix3x4 &model, const void *vertexData, unsigned vertexSize, unsigned vertexStart, unsigned vertexCount)
Submit a triangle mesh to the buffer using non-indexed geometry. Return true if did not overflow the ...
Definition: OcclusionBuffer.cpp:164
volatile signed char * position_
Playback position.
Definition: SoundSource.h:185
SharedPtr< XMLFile > loadXMLFile_
XML file used while loading.
Definition: Material.h:323
unsigned zoneMask_
Zone mask.
Definition: Drawable.h:359
bool interpolation_
Mixing interpolation flag.
Definition: Audio.h:139
void UpdateGeometries()
Update geometries and sort batches.
Definition: View.cpp:1280
unsigned GetMaximumIterations() const
Returns the configured maximum number of iterations.
Definition: IKSolver.cpp:193
Plane planes_[NUM_FRUSTUM_PLANES]
Frustum planes.
Definition: Frustum.h:182
void DrawDebugGeometry(bool depthTest)
Add debug geometry to the debug renderer.
Definition: Renderer.cpp:749
Random access const iterator.
Definition: Iter.h:127
Texture2D * GetDefaultLightSpot() const
Return the default spotlight attenuation texture.
Definition: Renderer.h:370
@ O_HEXAGONAL
Hexagonal.
Definition: TileMapDefs2D.h:45
bool GetMultiselect() const
Return whether multiselect enabled.
Definition: ListView.h:144
HashMap< Pair< StringHash, StringHash >, SharedPtr< Technique > > cloneTechniques_
Cached clones with added shader compilation defines.
Definition: Technique.h:284
void AddVertex(const DecalVertex &vertex)
Add a vertex.
Definition: DecalSet.cpp:131
PODVector< Pair< unsigned, unsigned > > drawRanges_
Draw ranges for different LODs and stitching combinations.
Definition: Terrain.h:257
const IntVector2 & GetCustomSize() const
Return root element custom size. Returns 0,0 when custom size is not being used and automatic resizin...
Definition: UI.h:224
void ChangeValue(float delta)
Change value by a delta.
Definition: ProgressBar.cpp:109
void StopLayer(unsigned char layer, float fadeOutTime=0.0f)
Stop all animations on a specific layer. Zero fadetime is instant.
Definition: AnimationController.cpp:223
static const Vector2 UP
(0,1) vector.
Definition: Vector2.h:385
void AddEventHandler(StringHash eventType, const String &handlerName) override
Add a scripted event handler.
Definition: ScriptInstance.cpp:333
T * GetChildDynamicCast(unsigned index) const
Template version of returning child element by index using dynamic cast. May return 0 when casting fa...
Definition: UIElement.h:844
void ComponentAdded(Component *component)
Component added. Add to ID map.
Definition: Scene.cpp:1012
unsigned GetFreeParticle() const
Return a free particle index.
Definition: ParticleEmitter.cpp:550
Vector< String > headers_
Headers.
Definition: HttpRequest.h:91
Definition: IKConstraint.h:35
float DistanceToPlane(const Vector3 &origin, const Vector3 &normal) const
Calculate distance to the plane with given origin and normal.
Definition: Vector3.h:386
ConstIterator Find(const T &key) const
Return const iterator to the key, or end iterator if not found.
Definition: HashSet.h:476
IntVector2(const float *data)
Construct from an float array.
Definition: Vector2.h:57
EventHandler11Impl(std::function< void(StringHash, VariantMap &)> function, void *userData=nullptr)
Construct with receiver and function pointers and userdata.
Definition: Object.h:334
void * GetExternalWindow() const
Return OS-specific external window handle. Null if not in use.
Definition: Graphics.h:330
WeakPtr< SoundListener > listener_
Sound listener.
Definition: Audio.h:151
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: UIElement.cpp:171
AllocatorBlock * allocator_
Node allocator.
Definition: HashBase.h:155
bool Remove()
Remove element from its parent.
Definition: XMLElement.cpp:142
2D texture array resource.
Definition: Texture2DArray.h:36
void ComponentRemoved(Component *component)
Component removed. Remove from ID map.
Definition: Scene.cpp:1052
void HandleAttributeAnimationUpdate(StringHash eventType, VariantMap &eventData)
Update shader parameter animations.
Definition: Material.cpp:1340
void SetTarget(const Vector2 &target)
Set target.
Definition: ConstraintMouse2D.cpp:57
static const Matrix3 IDENTITY
Identity matrix.
Definition: Matrix3.h:334
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: StaticModelGroup.cpp:226
static DBAPI GetAPI()
Return the underlying database API.
Definition: Database.cpp:41
void SetAutoAspectRatio(bool enable)
Set automatic aspect ratio based on viewport dimensions. Enabled by default.
Definition: Camera.cpp:203
PODVector< Component * > delayedDirtyComponents_
Delayed dirty notification queue for components.
Definition: Scene.h:308
void SetRegionMergeSize(float size)
Set region merge size.
Definition: NavigationMesh.cpp:283
SharedPtr< LuaScriptEventInvoker > eventInvoker_
Event invoker.
Definition: LuaScriptInstance.h:175
unsigned GetSelectionStart() const
Return selection start.
Definition: Text.h:151
TechniqueEntry() noexcept
Construct with defaults.
Definition: Material.cpp:168
SharedPtr< File > logFile_
Log file.
Definition: Log.h:120
Texture * GetTexture(unsigned index) const
Return current texture by texture unit index.
Definition: OGLGraphics.cpp:2176
void SetExternalWindow(void *window)
Set external window handle. Only effective before setting the initial screen mode.
Definition: Graphics.cpp:65
const char ** enumNames_
Enum names.
Definition: Attribute.h:106
bool fixedScreenSize_
Fixed screen size flag.
Definition: Text3D.h:208
PODVector< unsigned char > GetBuffer(const String &name) const
Return buffer attribute, or empty if missing.
Definition: XMLElement.cpp:768
int depth_
Depth.
Definition: Image.h:69
void DrawTriangle2D(const Vector3 *vertices, bool clockwise, unsigned threadIndex)
Draw a clipped triangle.
Definition: OcclusionBuffer.cpp:815
int GetHatPosition(unsigned index) const
Return hat position.
Definition: Input.h:106
int lastPatchSize_
Patch size at the time of last update.
Definition: Terrain.h:283
PODVector< DebugLine > noDepthLines_
Lines rendered without depth test.
Definition: DebugRenderer.h:178
bool WriteUInt(unsigned value)
Write a 32-bit unsigned integer.
Definition: Serializer.cpp:61
float GetFogHeightScale() const
Return fog height scale.
Definition: Zone.h:97
Mutex changesMutex_
Mutex for the change buffer.
Definition: FileWatcher.h:75
SharedPtr< Geometry > pointLightGeometry_
Point light volume geometry.
Definition: Renderer.h:486
virtual void Update(float timeStep)
Perform UI element update.
Definition: UIElement.cpp:339
static const Vector3 DOWN
(0,-1,0) vector.
Definition: Vector3.h:489
unsigned viewMask_
View mask.
Definition: Terrain.h:301
bool GetTextureRectangle(Rect &rect, bool flipX=false, bool flipY=false) const
Return texture rectangle.
Definition: Sprite2D.cpp:167
unsigned format_
Texture format.
Definition: Texture.h:209
void SetMinEmissionRate(float rate)
Set minimum emission rate.
Definition: ParticleEffect.cpp:520
void SetAxis(const Vector2 &axis)
Set axis.
Definition: ConstraintPrismatic2D.cpp:73
const T & operator*() const
Dereference the key.
Definition: HashSet.h:171
bool hovering_
Hovering flag.
Definition: UIElement.h:712
void DumpProfiler()
Dump profiling information to the log.
Definition: Engine.cpp:606
ProfilerBlock * GetChild(const char *name)
Return child block with the specified name.
Definition: Profiler.h:123
@ OT_TILE
Tile.
Definition: TileMapDefs2D.h:99
unsigned GetNumChildren(bool recursive=false) const
Return number of child scene nodes.
Definition: Node.cpp:1222
void Set(unsigned index)
Set a bit.
Definition: ReplicationState.h:62
void SetFixedScreenSize(bool enable)
Set whether billboards have fixed size on screen (measured in pixels) regardless of distance to camer...
Definition: ParticleEffect.cpp:470
SLNet::NatPunchthroughClient * natPunchthroughClient_
NAT punchtrough client for the client.
Definition: Network.h:188
const Vector< SharedPtr< AnimationState > > & GetAnimationStates() const
Return all animation states.
Definition: AnimatedModel.h:106
const IntVector2 & GetEffectShadowOffset() const
Return effect shadow offset.
Definition: Text3D.cpp:433
ConstantBuffer(Context *context)
Construct.
Definition: ConstantBuffer.cpp:34
bool Equals(const Matrix4 &rhs) const
Test for equality with another matrix with epsilon.
Definition: Matrix4.h:618
int drawOrder_
Draw order.
Definition: TileMapLayer2D.h:123
bool BeginLoadFromXMLFile(Deserializer &source)
Begin load from XML file.
Definition: SpriteSheet2D.cpp:197
void Update(float timeStep)
Step the simulation forward.
Definition: PhysicsWorld.cpp:256
~AnimatedModel() override
Destruct.
Definition: AnimatedModel.cpp:90
float rotationMin_
Particle rotation angle minimum.
Definition: ParticleEffect.h:407
ParticleEffect2D(Context *context)
Construct.
Definition: ParticleEffect2D.cpp:68
static void CopyChars(char *dest, const char *src, unsigned count)
Copy chars from one buffer to another.
Definition: Str.h:523
UniquePtr< dtTileCacheAlloc > allocator_
Used by dtTileCache to allocate blocks of memory.
Definition: DynamicNavigationMesh.h:136
Vector3 targetVelocity_
Requested target velocity.
Definition: CrowdAgent.h:210
void ResetMorphWeights()
Reset all vertex morphs to zero.
Definition: AnimatedModel.cpp:608
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: RigidBody.cpp:891
Iterator Begin()
Return iterator to the beginning.
Definition: HashMap.h:603
float slopeScaledDepthBias_
Depth slope scaled bias.
Definition: Graphics.h:813
void StartNATClient()
Start NAT punchtrough client to allow remote connections.
Definition: Network.cpp:475
float GetLength(const String &name) const
Return animation length.
Definition: AnimationController.cpp:525
MouseButtonFlags GetDragButtonCombo() const
Return the drag button combo if this element is being dragged.
Definition: UIElement.h:604
Vector2 anchorMax_
Anchor maximum position.
Definition: UIElement.h:793
void OnSceneSet(Scene *scene) override
Subscribe to events when assigned to a scene.
Definition: DynamicNavigationMesh.cpp:1069
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector3.h:153
Shader(Context *context)
Construct.
Definition: Shader.cpp:64
RenderSurface * GetRenderTarget(unsigned index) const
Return current rendertarget by index.
Definition: OGLGraphics.cpp:2181
VariantType type_
Attribute type.
Definition: Attribute.h:102
btPersistentManifold * manifold_
Manifold without the body pointers flipped.
Definition: PhysicsWorld.h:104
bool WriteVector3(const Vector3 &value)
Write a Vector3.
Definition: Serializer.cpp:116
CustomGeometryVertex * GetVertex(unsigned geometryIndex, unsigned vertexNum)
Return a vertex in a geometry for editing, or null if out of bounds. After the edits are finished,...
Definition: CustomGeometry.cpp:728
Orientation2D orientation_
Orientation.
Definition: TileMapDefs2D.h:52
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: CrowdAgent.cpp:124
void ReleaseBody()
Remove the rigid body.
Definition: RigidBody.cpp:875
Component * component_
Component.
Definition: NavigationMesh.h:62
@ OT_RECTANGLE
Rectangle.
Definition: TileMapDefs2D.h:91
float cursorBlinkRate_
Cursor blink rate.
Definition: LineEdit.h:144
float shadowIntensity_
Light intensity in shadow.
Definition: Light.h:385
void ApplyTorque(float torque, bool wake)
Apply Torque.
Definition: RigidBody2D.cpp:341
void Apply()
Apply the animation at the current time position.
Definition: AnimationState.cpp:444
const String & GetVarName(StringHash hash) const
Return a node user variable name, or empty if not registered.
Definition: Scene.cpp:754
Placeholder for allowing unregistered components to be loaded & saved along with scenes.
Definition: UnknownComponent.h:31
Model * GetModel() const
Return model.
Definition: StaticModel.h:77
void RebuildChainTrees()
Updates the solver's internal data structures, which is required whenever the tree is modified in any...
Definition: IKSolver.cpp:378
const float * Data() const
Return float data.
Definition: Matrix4.h:639
Button * GetOKButton() const
Return OK button.
Definition: FileSelector.h:102
WrapMode GetAttributeAnimationWrapMode(const String &name) const
Return attribute animation wrap mode.
Definition: Animatable.cpp:434
int Run()
Initialize the engine and run the main loop, then return the application exit code....
Definition: Application.cpp:63
void EnableInternalLayoutUpdate()
Enable automatic layout update for internal elements.
Definition: ListView.cpp:338
bool GetSpecular() const
Return whether should render specular.
Definition: Material.h:250
BoundingBox box_
Bounding box.
Definition: OctreeQuery.h:132
static const Rect FULL
Rect in the range (-1, -1) - (1, 1).
Definition: Rect.h:264
SharedArrayPtr< unsigned char > loadByteCode_
Byte code for asynchronous loading.
Definition: ScriptFile.h:152
HashMap< StringHash, HashSet< StringHash > > dependentResources_
Dependent resources. Only used with automatic reload to eg. trigger reload of a cube texture when any...
Definition: ResourceCache.h:242
Drawable(Context *context, unsigned char drawableFlags)
Construct.
Definition: Drawable.cpp:59
TextEffect GetTextEffect() const
Return text effect.
Definition: Text.h:157
LinkedList< EventHandler > eventHandlers_
Event handlers. Sender is null for non-specific handlers.
Definition: Object.h:190
SharedPtr< Text > loadingText_
ProgressBar text.
Definition: ProgressBar.h:96
UniquePtr< pugi::xpath_variable_set > variables_
Pugixml xpath_variable_set.
Definition: XMLElement.h:404
static unsigned GetExternalFormat(unsigned format)
Return the non-internal texture format corresponding to an OpenGL internal format.
Definition: OGLTexture.cpp:256
void GetBatches()
Construct batches from the drawable objects.
Definition: View.cpp:964
String loadSpriteName_
Sprite name acquired during BeginLoad().
Definition: ParticleEffect2D.h:330
SceneReplicationState sceneState_
Network replication state of the scene.
Definition: Connection.h:301
const Matrix4 & GetProjection() const
Return projection matrix.
Definition: OcclusionBuffer.h:132
const wchar_t * CString() const
Return character data.
Definition: Str.h:618
Iterator()=default
Construct.
const Vector< AttributeInfo > * GetAttributes() const override
Return attribute descriptions, or null if none defined.
Definition: UnknownComponent.h:47
bool SaveDDS(const String &fileName) const
Save in DDS format. Only uncompressed RGBA images are supported. Return true if successful.
Definition: Image.cpp:1329
PODVector< unsigned short > indices_
Decal indices.
Definition: DecalSet.h:99
static ThreadID GetCurrentThreadID()
Return the current thread's ID.
Definition: Thread.cpp:137
void SetLayout(LayoutMode mode, int spacing=0, const IntRect &border=IntRect::ZERO)
Set layout parameters.
Definition: UIElement.cpp:1044
ShaderVariation * vertexShader_
Vertex shader in use.
Definition: Graphics.h:785
virtual void OnNodeSetEnabled(Node *node)
Handle scene node enabled status changing.
Definition: Component.cpp:250
void DelayedExecute(float delay, bool repeat, const String &declaration, const VariantVector ¶meters=Variant::emptyVariantVector)
Add a delay-executed function call, optionally repeating.
Definition: ScriptFile.cpp:491
void SetMinAnchor(const Vector2 &anchor)
Set minimum (top left) anchor in relation to the parent element (from 0 to 1). No effect when anchor ...
Definition: UIElement.cpp:769
static int Print(lua_State *L)
Print function.
Definition: LuaScript.cpp:397
T Pow(T x, T y)
Return X in power Y.
Definition: MathDefs.h:160
void AddResourceRouter(ResourceRouter *router, bool addAsFirst=false)
Add a resource router object. By default there is none, so the routing process is skipped.
Definition: ResourceCache.cpp:461
SharedArrayPtr< unsigned char > data_
Buffer data.
Definition: Graphics.h:73
bool IsUpdateQueued() const
Return whether manual update queued. Called internally.
Definition: RenderSurface.h:96
static const IntRect ZERO
Zero-sized rect.
Definition: Rect.h:470
bool SetTime(const String &name, float time)
Set animation time position. Return true on success.
Definition: AnimationController.cpp:328
ConstIterator & operator=(const Iterator &rhs)
Assign from a non-const iterator.
Definition: HashMap.h:174
Vector< PODVector< CustomGeometryVertex > > & GetVertices()
Return all vertices. These can be edited; calling Commit() updates the vertex buffer.
Definition: CustomGeometry.h:144
bool array_
Texture array status if DDS.
Definition: Image.h:228
SharedPtr< BorderImage > cursor_
Cursor element.
Definition: LineEdit.h:132
static void RegisterObject(Context *context)
Register object factory.
Definition: CheckBox.cpp:48
const Frustum & GetFrustum() const
Return the view frustum.
Definition: DebugRenderer.h:164
Model * GetModel() const
Return triangle mesh / convex hull model.
Definition: CollisionShape.h:236
void FinalizeShadowCamera(Camera *shadowCamera, Light *light, const IntRect &shadowViewport, const BoundingBox &shadowCasterBox)
Finalize shadow camera view after shadow casters and the shadow map are known.
Definition: View.cpp:2678
Camera * cullCamera_
Culling camera. Usually same as the viewport camera.
Definition: View.h:322
@ INHERIT_PARENT_ROTATION
Definition: IKEffector.h:61
void Set()
Set the condition. Will be automatically reset once a waiting thread wakes up.
Definition: Condition.cpp:83
void Define(const Sphere &sphere)
Define from another sphere.
Definition: Sphere.h:89
static unsigned shadowPassIndex
Index for shadow pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:274
~BufferedSoundStream() override
Destruct.
Vector3 GetSignedWorldScale() const
Return signed scale in world space. Utilized for Urho2D physics.
Definition: Node.cpp:1182
HashMap< StringHash, ResourceGroup > resourceGroups_
Resources by type.
Definition: ResourceCache.h:234
RenderCommandSortMode
Rendering path sorting modes.
Definition: RenderPath.h:53
Drawable2D(Context *context)
Construct.
Definition: Drawable2D.cpp:46
~RigidBody2D() override
Destruct.
Definition: RigidBody2D.cpp:61
float rotationEndVariance_
Rotation end variance.
Definition: ParticleEffect2D.h:328
void HandleComponentAdded(StringHash eventType, VariantMap &eventData)
Handle component added in the scene to check for late addition of the navmesh.
Definition: CrowdManager.cpp:731
void SetPatchNeighbors(TerrainPatch *patch)
Set neighbors for a patch.
Definition: Terrain.cpp:1406
bool useDrawRect_
Use draw rectangle flag.
Definition: StaticSprite2D.h:158
Variant LinearInterpolation(const Vector< Variant > &knots, float t) const
Perform linear interpolation on the spline.
Definition: Spline.cpp:231
bool StartsWith(const String &str, bool caseSensitive=true) const
Return whether starts with a string.
Definition: Str.cpp:712
LayoutMode GetLayoutMode() const
Return layout mode.
Definition: UIElement.h:549
void SetStartParticleSize(float startParticleSize)
Set start particle size.
Definition: ParticleEffect2D.cpp:389
void UpdateParameters()
Update dirty parameters to the texture object. Called by Graphics when assigning the texture.
Definition: OGLTexture.cpp:87
bool PositionToTileIndex(int &x, int &y, const Vector2 &position) const
Convert position to tile index, if out of map return false.
Definition: TileMapDefs2D.cpp:96
@ AM_FILE
Attribute used for file serialization.
Definition: Attribute.h:39
virtual bool IsEof() const
Return whether the end of stream has been reached.
Definition: Deserializer.h:52
unsigned char areaID_
Area id to assign to the marked area.
Definition: NavArea.h:65
float farClip_
Far clip distance.
Definition: OcclusionBuffer.h:213
const Vector< TechniqueEntry > & GetTechniques() const
Return all techniques.
Definition: Material.h:191
LightBatchQueue * lightQueue_
Light properties.
Definition: Batch.h:100
List & operator+=(const T &rhs)
Add-assign an element.
Definition: List.h:227
static unsigned GetRG16Format()
Return the API-specific RG 16-bit texture format.
Definition: OGLGraphics.cpp:2616
VariantType GetValueType() const
Return value type.
Definition: ValueAnimation.h:120
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: TextureCube.cpp:84
void SetShaderParameter(const String &name, const Variant &value)
Set shader parameter.
Definition: Material.cpp:953
~Node() override
Destruct. Any child nodes are detached.
Definition: Node.cpp:67
void SetName(const String &name)
Set name.
Definition: ShaderVariation.cpp:70
int GetVSMMultiSample() const
Return VSM shadow multisample level.
Definition: Renderer.h:301
float fadeTime_
Animation weight fade time, 0 if no fade.
Definition: AnimationController.h:64
Cursor(Context *context)
Construct.
Definition: Cursor.cpp:76
EventHandler * GetEventHandler() const
Return active event handler. Set by Object. Null outside event handling.
Definition: Context.h:158
HashMap< BatchGroupKey, BatchGroup > batchGroups_
Instanced draw calls.
Definition: Batch.h:248
SharedPtr< XMLFile > loadXMLFile_
XML file used during loading.
Definition: TmxFile2D.h:214
void RemoveAutoComplete(const String &option)
Remove auto complete option.
Definition: Console.cpp:264
float GetFrequency() const
Return default frequency as a float.
Definition: Sound.h:91
void SetFlip(bool flipX, bool flipY, bool swapXY=false)
Set flip.
Definition: StaticSprite2D.cpp:129
unsigned AtUTF8(unsigned index) const
Return Unicode character at index from UTF8 content.
Definition: Str.cpp:824
~ValueAnimation() override
Destruct.
SharedArrayPtr(const SharedArrayPtr< T > &rhs)
Copy-construct from another shared array pointer.
Definition: ArrayPtr.h:45
float maxDoubleClickDist_
Max screen distance the first click in a double click can be from the second click in a double click.
Definition: UI.h:423
float GetGravityScale() const
Return gravity scale.
Definition: RigidBody2D.h:150
HashMap< Pair< Light *, Camera * >, Rect > lightScissorCache_
Cache for light scissor queries.
Definition: Renderer.h:518
HashNodeBase ** ptrs_
Bucket head pointers.
Definition: HashBase.h:153
float GetDepthSlopeScaledBias() const
Return depth slope scaled bias.
Definition: Graphics.h:516
void SetWorldTransform2D(const Vector2 &position, float rotation, const Vector2 &scale)
Set position, rotation, and scale in world space as an atomic opration (for Urho2D).
Definition: Node.h:234
void StaticCast(const SharedArrayPtr< U > &rhs)
Perform a static cast from a shared array pointer of another type.
Definition: ArrayPtr.h:135
float RollAngleoffFactor() const
Return rolloff power factor.
Definition: SoundSource3D.h:78
void SendRemoteEvent(StringHash eventType, bool inOrder, const VariantMap &eventData=Variant::emptyVariantMap)
Send a remote event.
Definition: Connection.cpp:142
unsigned GetViewMask() const
Return view mask.
Definition: Drawable.h:195
float GetMinAngle() const
Return minimal angle between billboard normal and look-at direction.
Definition: BillboardSet.h:131
void SetRenderPath(RenderPath *renderPath)
Set rendering path.
Definition: Viewport.cpp:94
void SetMaximumIterations(unsigned iterations)
Sets the maximum number of iterations the solver is allowed to perform before applying the result.
Definition: IKSolver.cpp:199
void TransformVertices(Decal &decal, const Matrix3x4 &transform)
Transform decal's vertices from the target geometry to the decal set local space.
Definition: DecalSet.cpp:975
WeakPtr< PhysicsWorld2D > physicsWorld_
Physics world.
Definition: RigidBody2D.h:171
bool keepInterResults_
Keep internal build resources for debug draw modes.
Definition: NavigationMesh.h:348
TextureAddressMode
Texture addressing mode.
Definition: GraphicsDefs.h:242
void SetFixedHeightResizing(bool enable)
Set whether resizing height is fixed.
Definition: Window.cpp:267
bool IsHeadless() const
Return whether the engine has been created in headless mode.
Definition: Engine.h:106
virtual bool OnDragDropFinish(UIElement *source)
React to drag and drop finish. Return true to signal that the drop was accepted.
Definition: UIElement.cpp:457
void SetAngularFactor(const Vector3 &factor)
Set angular degrees of freedom. Use 1 to enable an axis or 0 to disable. Default is all axes enabled ...
Definition: RigidBody.cpp:347
const Color & GetColor(Corner corner) const
Return corner color.
Definition: Text3D.cpp:498
bool GetParametersDirty() const
Return whether the parameters are dirty.
Definition: OGLTexture.cpp:176
void SetEdgeMaxError(float error)
Set edge max error.
Definition: NavigationMesh.cpp:297
unsigned GetBufferNumBytes() const
Return amount of buffered (unplayed) sound data in bytes.
Definition: BufferedSoundStream.cpp:110
float GetCFM() const
Return constraint force mixing parameter.
Definition: Constraint.h:140
void SetBringToBack(bool enable)
Set whether should be put to background when another element is focused.
Definition: UIElement.cpp:864
unsigned GetNumDrawables() const
Return number of drawables.
Definition: Octree.h:91
void SetSmoothingConstant(float constant)
Set network client motion smoothing constant.
Definition: Scene.cpp:655
@ JSON_ARRAY
JSON array type.
Definition: JSONValue.h:44
bool SetNumGeometryLodLevels(unsigned index, unsigned num)
Set number of LOD levels in a geometry.
Definition: Model.cpp:556
bool HasAlphaChannel() const
Whether this texture has an alpha channel.
Definition: Image.cpp:2356
Vector< PODVector< GlyphLocation > > pageGlyphLocations_
Glyph locations per each texture in the font.
Definition: Text.h:261
static void RegisterObject(Context *)
Register object factory and attributes.
Definition: NavArea.cpp:50
unsigned GetShadowMask() const
Return shadow mask.
Definition: Terrain.h:175
asIScriptContext * GetScriptFileContext()
Return a script function/method execution context for the current execution nesting level.
Definition: Script.cpp:352
void CleanupRenderSurface(RenderSurface *surface)
Clean up a render surface from all FBOs. Used only on OpenGL.
Definition: OGLGraphics.cpp:2275
virtual bool IsWheelHandler() const
Return whether the element could handle wheel input.
Definition: UIElement.h:209
Vector3 ReadVector3()
Read a Vector3.
Definition: Deserializer.cpp:173
bool Equals(const Vector4 &rhs) const
Test for equality with another vector with epsilon.
Definition: Vector4.h:189
virtual const String & GetName() const
Return name of the stream.
Definition: Deserializer.cpp:53
void SetStartColor(const Color &color)
Set vertex blended color for start of trail.
Definition: RibbonTrail.cpp:830
const Matrix4 & GetProjection() const
Return the projection transform.
Definition: DebugRenderer.h:161
void ResumeSoundType(const String &type)
Resume playback of specific sound type.
Definition: Audio.cpp:176
b2MotorJointDef jointDef_
Box2D joint def.
Definition: ConstraintMotor2D.h:74
void AddCross(const Vector3 ¢er, float size, const Color &color, bool depthTest=true)
Add a cross.
Definition: DebugRenderer.cpp:459
Animation * GetAnimation() const
Return current animation.
Definition: SpriterInstance2D.h:72
void SetPixelShaderDefineExcludes(const String &excludes)
Set pixel shader define excludes. Use to mark defines that the shader code will not recognize,...
Definition: Technique.cpp:165
void SetBillboardsAttr(const VariantVector &value)
Set billboards attribute.
Definition: BillboardSet.cpp:368
const HashMap< StringHash, SharedPtr< ObjectFactory > > & GetObjectFactories() const
Return all object factories.
Definition: Context.h:149
~Light() override
Destruct.
void SetBlockEvents(bool block)
Block object from sending and receiving events.
Definition: Object.h:171
bool IsStereo() const
Return whether output is stereo.
Definition: Audio.h:81
static void RegisterObject(Context *context)
Register object factory.
Definition: TileMap2D.cpp:49
bool GetSRGBWriteSupport() const
Return whether sRGB conversion on rendertarget writing is supported.
Definition: Graphics.h:438
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLTexture3D.cpp:50
float GetMaxTimeToLive() const
Return particle maximum time to live.
Definition: ParticleEffect.h:290
int GetInt(const String &name) const
Return an integer attribute, or zero if missing.
Definition: XMLElement.cpp:807
bool lineAntiAlias_
Line antialiasing flag.
Definition: DebugRenderer.h:194
void GetRigidBodies(PODVector< RigidBody * > &result, const Sphere &sphere, unsigned collisionMask=M_MAX_UNSIGNED)
Return rigid bodies by a sphere query.
Definition: PhysicsWorld.cpp:621
float GetEffectiveSpecularIntensity() const
Return effective specular intensity, multiplied by absolute value of brightness.
Definition: Light.h:250
Static model per-geometry extra data.
Definition: StaticModel.h:33
void ClearDrawablesZone()
Clear zone reference from drawables inside the bounding box.
Definition: Zone.cpp:325
void DrawOccluders(OcclusionBuffer *buffer, const PODVector< Drawable * > &occluders)
Draw occluders to occlusion buffer.
Definition: View.cpp:2231
HashMap< StringHash, ShaderParameter > parameters_
Shader parameters.
Definition: ShaderVariation.h:162
const FrameInfo & GetFrameInfo() const
Return the frame update parameters.
Definition: Renderer.h:382
void SendEvent(StringHash eventType)
Send event to all subscribers.
Definition: Object.cpp:293
Sprite2D * GetSprite() const
Return sprite.
Definition: TmxFile2D.cpp:371
int * data_
Buffer data.
Definition: OcclusionBuffer.h:59
SharedPtr< ResourceRouter > router_
AngelScript resource router.
Definition: Script.h:143
Context * context_
Execution context.
Definition: Object.h:177
static Urho3D::StringHash GetTypeStatic()
Return static type.
Definition: UnknownComponent.h:77
float GetEdgeMaxLength() const
Return edge max length.
Definition: NavigationMesh.h:225
float GetDefaultToolTipDelay() const
Return tooltip default display delay in seconds.
Definition: UI.h:185
ConstIterator Find(const T &value) const
Return const iterator to value, or to the end if not found.
Definition: List.h:381
bool compiled_
Compiled flag.
Definition: ScriptFile.h:136
File selector dialog.
Definition: FileSelector.h:51
~Animatable() override
Destruct.
Vector3 position_
Position.
Definition: DecalSet.h:62
TileMapObject2D * GetObject(unsigned index) const
Return tile map object at index.
Definition: TmxFile2D.cpp:327
SharedPtr< Texture2D > texture_
Texture.
Definition: Sprite2D.h:97
ShapeType shapeType_
Collision shape type.
Definition: CollisionShape.h:300
MainlineKey * mainlineKey_
Current mainline key.
Definition: SpriterInstance2D.h:107
float DotProduct(const Quaternion &rhs) const
Calculate dot product.
Definition: Quaternion.h:398
Vector< RenderPathCommand > commands_
Rendering commands.
Definition: RenderPath.h:250
static void RegisterObject(Context *context)
Register object factory.
Definition: SoundSource3D.cpp:58
void ChangeSelection(int delta, bool additive=false)
Move selection by a delta and clamp at list ends. If additive (multiselect only), will add to the exi...
Definition: ListView.cpp:655
SharedPtr< Sound > sound_
Sound that is being played.
Definition: SoundSource.h:181
const Vector3 & GetScale() const
Return scale in parent space.
Definition: Node.h:398
unsigned rootBoneIndex_
Root bone index.
Definition: Skeleton.h:142
int GetWidth() const
Return width (for tile layer only).
Definition: TileMapLayer2D.cpp:274
void SetVariantMap(const VariantMap &variantMap, Context *context=nullptr)
Set variant map, context must provide for resource ref.
Definition: JSONValue.cpp:566
Vector3 GetAngularVelocity() const
Return angular velocity.
Definition: RigidBody.cpp:643
virtual bool EndLoad()
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Resource.cpp:75
const Vector3 & GetBaseVelocity() const
Return base trail velocity.
Definition: RibbonTrail.h:161
bool enabled_
Enabled flag.
Definition: Component.h:144
Constraint2D * GetOwnerConstraint() const
Return owner constraint.
Definition: ConstraintGear2D.h:51
void SetHoverOffset(const IntVector2 &offset)
Set offset to image rectangle used on hover.
Definition: BorderImage.cpp:113
bool FilterUIStyleAttributes(XMLElement &dest, const XMLElement &styleElem) const
Filter UI-style attributes in serialization process.
Definition: UIElement.cpp:1970
void SetDepthTestMode(CompareMode mode)
Set depth compare mode.
Definition: Technique.cpp:109
bool NotNull() const
Check if the pointer is not null.
Definition: Ptr.h:646
bool positionDirty_
Screen position dirty flag.
Definition: UIElement.h:742
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: ParticleEmitter.cpp:87
void SetFixedScreenSize(bool enable)
Set whether text has fixed size on screen (pixel-perfect) regardless of distance to camera....
Definition: Text3D.cpp:359
void MarkPositionsDirty()
Mark vertex buffer to need an update.
Definition: RibbonTrail.cpp:895
void ResetScreenBufferAllocations()
Reset screem buffer allocation counts.
Definition: Renderer.cpp:1572
void MixStereoToMono(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix stereo sample to mono buffer.
Definition: SoundSource.cpp:918
void SetPosition(const IntVector2 &position)
Set position.
Definition: UIElement.cpp:525
PODVector< unsigned > unicodeText_
Text as Unicode characters.
Definition: Text.h:253
void SetWorldScale(float scale)
Set uniform scale in world space.
Definition: Node.cpp:529
void SetTextureForUpdate(Texture *texture)
Bind texture unit 0 for update. Called by Texture. Used only on OpenGL.
Definition: OGLGraphics.cpp:1564
BlendMode blendMode_
Blending mode.
Definition: Graphics.h:803
Mutex sceneMutex_
Mutex for the delayed dirty notification queue.
Definition: Scene.h:310
void SetInertia(float inertia)
Set inertia.
Definition: RigidBody2D.cpp:141
float GetMinTimeToLive() const
Return particle minimum time to live.
Definition: ParticleEffect.h:287
Vector4 Column(unsigned j) const
Return matrix column.
Definition: Matrix4.h:648
Iterator Erase(const Iterator &it)
Erase a key by iterator. Return iterator to the next key.
Definition: HashSet.h:362
Quaternion Nlerp(const Quaternion &rhs, float t, bool shortestPath=false) const
Normalized linear interpolation with another quaternion.
Definition: Quaternion.cpp:313
bool ReadTiles(Deserializer &source, bool silent)
Read tiles data to the navigation mesh.
Definition: DynamicNavigationMesh.cpp:770
Vector< PODVector< Vector3 > > faces_
Polygon faces.
Definition: Polyhedron.h:108
@ AM_FILEREADONLY
Attribute is readonly. Can't be used with binary serialized objects.
Definition: Attribute.h:55
void SetFeature(Feature feature, bool enable)
Enable or disable a certain feature (see IKSolver::Feature).
Definition: IKSolver.cpp:155
bool GetAmbientGradient() const
Return whether ambient gradient mode is enabled.
Definition: Zone.h:109
static void RegisterObject(Context *context)
Register object factory.
Definition: Texture2D.cpp:55
void AddDelayedWorldTransform(const DelayedWorldTransform2D &transform)
Add a delayed world transform assignment. Called by RigidBody2D.
Definition: PhysicsWorld2D.cpp:451
~RibbonTrail() override
Destruct.
unsigned GetProfilerMaxDepth() const
Return maximum profiler block depth.
Definition: DebugHud.h:91
void OnDeviceLost() override
Mark the buffer destroyed on graphics context destruction. May be a no-op depending on the API.
Definition: OGLIndexBuffer.cpp:36
AllContentOctreeQuery(PODVector< Drawable * > &result, unsigned char drawableFlags, unsigned viewMask)
Construct.
Definition: OctreeQuery.h:261
void Stop()
Stop playback.
Definition: SoundSource.cpp:255
UniquePtr< pugi::xml_document > document_
Pugixml document.
Definition: XMLFile.h:97
SDL_JoystickID joystickID_
SDL joystick instance ID.
Definition: Input.h:111
Image resource.
Definition: Image.h:81
Internal helper class for invoking event handler functions.
Definition: Object.h:247
bool operator==(const HashIteratorBase &rhs) const
Test for equality with another iterator.
Definition: HashBase.h:73
IntVector3 GetCoordinateSystem() const
Get the coordinate system.
Definition: RaycastVehicle.h:164
bool IsInView() const
Return whether is in view this frame from any viewport camera. Excludes shadow map cameras.
Definition: Drawable.cpp:264
void HandleItemClicked(StringHash eventType, VariantMap &eventData)
Handle listview item click event.
Definition: DropDownList.cpp:317
static void RegisterObject(Context *context)
Register object factory.
Definition: ObjectAnimation.cpp:53
bool scissorTest_
Scissor test enable flag.
Definition: Graphics.h:823
Iterator Begin()
Return iterator to the beginning.
Definition: Str.h:379
Variant(const String &value)
Construct from a string.
Definition: Variant.h:409
unsigned GetPoolSize() const
Get internal database connection pool size.
Definition: Database.h:62
bool IsBool() const
Check is boolean.
Definition: JSONValue.h:181
float GetDampingRatio() const
Return damping ratio.
Definition: ConstraintMouse2D.h:62
Matrix3x4(const Vector3 &translation, const Quaternion &rotation, float scale) noexcept
Construct from translation, rotation and uniform scale.
Definition: Matrix3x4.h:150
Material * GetMaterial() const
Return material.
Definition: Terrain.cpp:523
void WriteTile(Serializer &dest, int x, int z) const
Write tile data.
Definition: NavigationMesh.cpp:1253
int vsmMultiSample_
Multisample level for VSM shadows.
Definition: Renderer.h:554
VertexMaskFlags elementMask_
Vertex element legacy bitmask.
Definition: VertexBuffer.h:158
TextureUsage
Texture usage types.
Definition: GraphicsDefs.h:261
static const Vector3 RIGHT
(1,0,0) vector.
Definition: Vector3.h:485
void SetAgentRadius(float radius)
Set navigation agent radius.
Definition: NavigationMesh.cpp:255
bool compressed_
Compression flag.
Definition: File.h:143
@ LOAD_RESOURCES_ONLY
Preload resources used by a scene or object prefab file, but do not load any scene content.
Definition: Scene.h:49
Variant(VariantType type, const char *value)
Construct from type and value.
Definition: Variant.h:542
bool IsPlaying() const
Return whether audio is being output.
Definition: Audio.h:84
asIScriptContext * GetImmediateContext() const
Return immediate execution script context.
Definition: Script.h:89
void MarkOtherBodyNodeIDDirty()
Mark other body node ID dirty.
Definition: Constraint2D.h:91
SharedPtr< Image > GetNextSibling() const
Return the next sibling image of an array or cubemap.
Definition: Image.h:185
IntVector2 childOffset_
Child elements' offset. Used internally.
Definition: UIElement.h:779
float GetGain() const
Return gain.
Definition: SoundSource.h:96
static void RegisterObject(Context *context)
Register object factory.
Definition: Constraint2D.cpp:52
static unsigned CheckMaxLevels(int width, int height, unsigned requestedLevels)
Check maximum allowed mip levels for a specific texture size.
Definition: Texture.cpp:240
void SetSelectOnClickEnd(bool enable)
Enable reacting to click end instead of click start for item selection. Default false.
Definition: ListView.cpp:764
float GetWeight() const
Return blending weight.
Definition: AnimationState.h:133
void AddWorkItem(const SharedPtr< WorkItem > &item)
Add a work item and resume worker threads.
Definition: WorkQueue.cpp:125
TerrainPatch * GetNorthPatch() const
Return north neighbor patch.
Definition: TerrainPatch.h:89
const String & GetPixelShaderDefines() const
Return pixel shader defines.
Definition: Technique.h:123
WeakPtr< RigidBody2D > otherBody_
Other body.
Definition: Constraint2D.h:100
Vector2 startPos_
Start position.
Definition: ParticleEmitter2D.h:56
void SetVertexShader(const String &name)
Set vertex shader name.
Definition: Technique.cpp:135
void InsertKeyFrame(unsigned index, const AnimationKeyFrame &keyFrame)
Insert a keyframe at index.
Definition: Animation.cpp:71
Vector3 normal_
Hit normal in world space. Negation of ray direction if per-triangle data not available.
Definition: OctreeQuery.h:209
void OnDragEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor *cursor) override
React to mouse drag end.
Definition: Window.cpp:232
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticModelGroup.cpp:368
int numDragButtons
How many buttons initiated the drag.
Definition: UI.h:235
float mobileNormalOffsetMul_
Mobile platform shadow normal offset multiplier.
Definition: Renderer.h:572
float GetDistance() const
Return distance from camera.
Definition: Drawable.h:260
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: DecalSet.cpp:518
float AbsDotProduct(const Vector2 &rhs) const
Calculate absolute dot product.
Definition: Vector2.h:310
Color GetColorFromTemperature() const
Return the color value of the temperature in Kelvin.
Definition: Light.cpp:416
void SetText(const String &text)
Set text. Text is assumed to be either ASCII or UTF8-encoded.
Definition: Text3D.cpp:223
Two-dimensional bounding rectangle with integer values.
Definition: Rect.h:272
int height_
Height of the window. 0 to pick automatically.
Definition: Graphics.h:133
bool IsObstacleInTile(Obstacle *obstacle, const IntVector2 &tile) const
Return whether the Obstacle is touching the given tile.
Definition: DynamicNavigationMesh.cpp:548
void PushString(const String &string)
Push string to stack.
Definition: LuaFunction.cpp:130
void SetScene(Scene *scene)
Set scene.
Definition: Viewport.cpp:69
AllocatorBlock * allocator_
Allocator block.
Definition: Allocator.h:124
unsigned GetSize() const override
Get size.
Definition: Variant.h:256
float rotationStartVariance_
Rotation start variance.
Definition: ParticleEffect2D.h:324
bool enabledPrev_
Last SetEnabled flag before any SetDeepEnabled.
Definition: Node.h:675
SceneReplicationState * sceneState_
Parent scene replication state.
Definition: ReplicationState.h:159
void ApplyShadowMapFilter(View *view, Texture2D *shadowMap, float blurScale)
Apply post processing filter to the shadow map. Called by View.
Definition: Renderer.cpp:531
VariantMap ReadVariantMap()
Read a variant map.
Definition: Deserializer.cpp:414
~ValueAnimationInfo() override
Destruct.
bool IsOpen() const
Return whether is open.
Definition: File.cpp:419
List< Decal >::Iterator RemoveDecal(List< Decal >::Iterator i)
Remove a decal by iterator and return iterator to the next decal.
Definition: DecalSet.cpp:984
void SetDebugRenderer(DebugRenderer *debug)
Set debug renderer to use. Called both by PhysicsWorld itself and physics components.
Definition: PhysicsWorld.cpp:761
void PostUpdate(float timeStep)
Send outgoing messages after frame logic. Called by HandleRenderUpdate.
Definition: Network.cpp:914
Matrix4 projection_
Cached projection matrix.
Definition: Camera.h:232
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: RibbonTrail.cpp:397
Decal renderer component.
Definition: DecalSet.h:103
float tileWidth_
Tile width.
Definition: TileMapDefs2D.h:58
float sortValue_
Current sort value.
Definition: Drawable.h:371
Vertex buffer morph data.
Definition: Model.h:41
void SetLodBias(float bias)
Set LOD bias.
Definition: Drawable.cpp:185
bool operator!=(const SharedPtr< U > &rhs) const
Test for inequality with another shared pointer.
Definition: Ptr.h:158
IntVector2 hotSpot_
Hotspot for positioning and rotation.
Definition: Sprite.h:114
void RemoveControlPoint(Node *point)
Remove a Node Control Point from the SplinePath.
Definition: SplinePath.cpp:154
String ToString() const
Return as string.
Definition: Rect.cpp:81
rcPolyMeshDetail * polyMeshDetail_
Recast detail poly mesh.
Definition: NavBuildData.h:99
void PushUserType(const T *userType, const char *typeName)
Push user type to stack.
Definition: LuaFunction.h:80
void SetMaxTriangles(unsigned triangles)
Set maximum triangles to render.
Definition: OcclusionBuffer.cpp:129
static const Vector3 BACK
(0,0,-1) vector.
Definition: Vector3.h:493
Intersection IsInsideFast(const BoundingBox &box) const
Test if a bounding box is (partially) inside or outside.
Definition: Frustum.h:144
unsigned GetNumLights(bool allViews=false) const
Return number of lights rendered.
Definition: Renderer.cpp:591
long long totalMaxTime_
All-time maximum time.
Definition: Profiler.h:166
void SetLowerTranslation(float lowerTranslation)
Set lower translation.
Definition: ConstraintPrismatic2D.cpp:99
bool bufferDirty_
Vertex buffer needs rewrite flag.
Definition: BillboardSet.h:193
bool multiselect_
Multiselect flag.
Definition: ListView.h:174
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLTexture3D.cpp:42
const Color & GetModalFrameColor() const
Get modal frame color.
Definition: Window.h:122
const Quaternion & GetRotation() const
Return offset rotation.
Definition: CollisionShape.h:230
@ WM_CLAMP
Clamp mode.
Definition: AnimationDefs.h:38
bool dirty_
Whether the Control Point IDs are dirty.
Definition: SplinePath.h:136
void HandleSelectionChanged(StringHash eventType, VariantMap &eventData)
Handle the listview selection change. Set placeholder text hidden/visible as necessary.
Definition: DropDownList.cpp:340
unsigned GetAnisotropy() const
Return texture max. anisotropy level. Value 0 means to use the default value from Renderer.
Definition: Texture.h:97
void SetCenter(const Vector2 ¢er)
Set center.
Definition: CollisionCircle2D.cpp:69
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: NavigationMesh.cpp:162
float g_
Green value.
Definition: Color.h:258
const HashMap< String, Vector< StringHash > > & GetObjectCategories() const
Return all object categories.
Definition: Context.h:152
PODVector< UIBatch > debugDrawBatches_
UI rendering batches for debug draw.
Definition: UI.h:365
void RemoveEventHandlersExcept(const PODVector< StringHash > &exceptions) override
Remove all scripted event handlers, except those listed.
Definition: ScriptFile.cpp:261
const StringVector & GetColumns() const
Return the column headers string collection.
Definition: ODBCResult.h:57
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event.
Definition: UI.cpp:2047
bool Decompress(unsigned char *dest) const
Decompress to RGBA. The destination buffer required is width * height * 4 bytes. Return true if succe...
Definition: Image.cpp:219
CollisionChain2D(Context *context)
Construct.
Definition: CollisionChain2D.cpp:38
IntVector2 maxSize_
Maximum size it allows to grow. It is zero when it is not allowed to grow.
Definition: AreaAllocator.h:66
bool sRGBWrite_
sRGB write mode flag.
Definition: OGLGraphicsImpl.h:160
Material * material_
Material.
Definition: Batch.h:201
Tile define.
Definition: TileMapDefs2D.h:131
void SetLoop(bool loop)
Set loop.
Definition: CollisionChain2D.cpp:57
void WriteColor(XMLElement &element, const String &name, const Color &color) const
Write Color.
Definition: ParticleEffect2D.cpp:554
const Vector< ModelMorph > & GetMorphs() const
Return all vertex morphs.
Definition: AnimatedModel.h:127
ConstIterator Begin() const
Return iterator to the beginning.
Definition: HashMap.h:606
bool hasSpriteSheet_
Has sprite sheet.
Definition: AnimationSet2D.h:114
bool Equals(const Matrix3 &rhs) const
Test for equality with another matrix with epsilon.
Definition: Matrix3.h:245
lua_State * GetState() const
Return Lua state.
Definition: LuaScript.h:88
float defaultToolTipDelay_
Tooltip default display delay in seconds.
Definition: UI.h:381
float GetIntensityDivisor(float attenuation=1.0f) const
Return a divisor value based on intensity for calculating the sort value.
Definition: Light.h:318
void ClearDataLost()
Clear the data lost flag.
Definition: GPUObject.cpp:68
Text * GetModeText() const
Return rendering mode text.
Definition: DebugHud.h:79
bool GetDirectoryMode() const
Return directory mode flag.
Definition: FileSelector.h:124
void CreateIndexData()
Create index data shared by all patches.
Definition: Terrain.cpp:1137
ValueAnimation * GetShaderParameterAnimation(const String &name) const
Return shader parameter animation.
Definition: Material.cpp:1209
void OnMarkedDirty(Node *point) override
Listener to manage Control Point movement.
Definition: SplinePath.cpp:285
HashMap< StringHash, SharedPtr< ObjectFactory > > factories_
Object factories.
Definition: Context.h:226
volatile int fractPosition_
Playback fractional position.
Definition: SoundSource.h:187
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: AnimationController.cpp:76
bool FilterAttributes(XMLElement &dest) const
Filter attributes in serialization process.
Definition: UIElement.cpp:485
void UpdateTextBatches()
Update text UI batches.
Definition: Text3D.cpp:571
void ProcessSceneLoaded(int msgID, MemoryBuffer &msg)
Process a SceneLoaded message from the client. Called by Network.
Definition: Connection.cpp:983
int tolerance_
Tolerance for the shared pool before it begins to deallocate.
Definition: WorkQueue.h:148
unsigned GetEchoCharacter() const
Return echo character.
Definition: LineEdit.h:102
void ApplyTrack(AnimationStateTrack &stateTrack, float weight, bool silent)
Apply track.
Definition: AnimationState.cpp:477
float GetMaxMotorTorque() const
Return max motor torque.
Definition: ConstraintRevolute2D.h:77
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Render debug geometry for the bounds.
Definition: NavArea.cpp:75
const PODVector< SpatialTimelineKey * > & GetTimelineKeys() const
Return animation result timeline keys.
Definition: SpriterInstance2D.h:76
Matrix3x4 worldTransform_
World-space transform matrix.
Definition: Node.h:669
EmitterType GetEmitterType() const
Return emitter type.
Definition: ParticleEffect.h:251
Instanced 3D geometry draw call.
Definition: Batch.h:134
virtual ~CustomVariantValue()=default
Destruct.
bool retryCreation_
Constraint creation retry flag if attributes initially set without scene.
Definition: Constraint.h:207
Timeline.
Definition: SpriterData2D.h:200
void SetRatio(float ratio)
Set ratio.
Definition: ConstraintGear2D.cpp:88
ConstIterator Begin() const
Return iterator to the first element.
Definition: List.h:396
SharedPtr< Technique > Clone(const String &cloneName=String::EMPTY) const
Clone the technique. Passes will be deep copied to allow independent modification.
Definition: Technique.cpp:376
FrustumOctreeQuery(PODVector< Drawable * > &result, const Frustum &frustum, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with frustum and query parameters.
Definition: OctreeQuery.h:140
void SetRenderTexture(Texture2D *texture)
Set texture to which element will be rendered.
Definition: UIElement.cpp:2245
WeakPtr< Terrain > north_
North neighbor terrain.
Definition: Terrain.h:259
CompressedFormat compressedFormat_
Compressed format.
Definition: Image.h:232
RenderPath * renderPath_
Renderpath.
Definition: View.h:386
List iterator.
Definition: List.h:58
Pair()=default
Construct undefined.
nanodbc::connection connectionImpl_
The underlying implementation connection object.
Definition: ODBCConnection.h:65
Urho3D execution context. Provides access to subsystems, object factories and attributes,...
Definition: Context.h:66
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update frame event.
Definition: Network.cpp:981
const int * Data() const
Return integer data.
Definition: Vector2.h:144
float biasAutoAdjust_
Automatic depth bias adjustment strength.
Definition: Light.h:115
b2CircleShape circleShape_
Circle shape.
Definition: CollisionCircle2D.h:63
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: Text3D.cpp:539
Vector< PListValue > PListValueVector
Vector of PList value.
Definition: PListFile.h:52
Intersection IsInside(const BoundingBox &box) const
Test if a bounding box is inside, outside or intersects.
Definition: Frustum.h:123
VariantMap extraData_
Extra control data.
Definition: Controls.h:70
String GetTextAttr() const
Return text attribute.
Definition: Text.cpp:461
bool SaveJSON(JSONValue &dest) const
Save as JSON data. Return true if successful.
Definition: ObjectAnimation.cpp:169
void ReleasePackageResources(PackageFile *package, bool force=false)
Release resources loaded from a package file.
Definition: ResourceCache.cpp:1003
Utility class that resolves node & component IDs after a scene or partial scene load.
Definition: SceneResolver.h:35
DebugTriangle()=default
Construct undefined.
Quaternion Inverse() const
Return inverse.
Definition: Quaternion.h:364
Tmx objects layer.
Definition: TmxFile2D.h:107
SoundSource(Context *context)
Construct.
Definition: SoundSource.cpp:103
Vector< String > StringVector
Vector of strings.
Definition: Variant.h:83
~ConstraintWheel2D() override
Destruct.
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: AnimatedModel.cpp:934
void Insert(const Iterator &dest, const List< T > &list)
Insert a list at position.
Definition: List.h:288
void SetMaxObstacles(unsigned maxObstacles)
Set the maximum number of obstacles allowed.
Definition: DynamicNavigationMesh.h:86
void SetRenderTarget(unsigned index, RenderSurface *renderTarget)
Set rendertarget.
Definition: OGLGraphics.cpp:1631
HashSet< Octree * > updatedOctrees_
Octrees that have been updated during the frame.
Definition: Renderer.h:528
bool LoadTileSet(const XMLElement &element)
Load tile set.
Definition: TmxFile2D.cpp:620
void WriteVector2(XMLElement &element, const String &name, const Vector2 &value) const
Write Vector2.
Definition: ParticleEffect2D.cpp:563
void Define(const Rect &rect)
Define from a Rect.
Definition: BoundingBox.h:150
int drawOrder_
Draw order.
Definition: Drawable2D.h:58
Decal()
Construct with defaults.
Definition: DecalSet.h:79
void Decompose(Vector3 &translation, Quaternion &rotation, Vector3 &scale) const
Return decomposition to translation, rotation and scale.
Definition: Matrix4.cpp:65
float GetFogEnd() const
Return fog end distance.
Definition: Zone.h:91
float radialAccelVariance_
Radial acceleration variance.
Definition: ParticleEffect2D.h:282
void BeginSendEvent(Object *sender, StringHash eventType)
Begin event send.
Definition: Context.cpp:454
Texture2D * GetRenderTexture() const
Return render texture.
Definition: View3D.cpp:141
Input state for a finger touch.
Definition: Input.h:57
BoundingBox(const Rect &rect) noexcept
Construct from a rect, with the Z dimension left zero.
Definition: BoundingBox.h:61
float mobileShadowBiasMul_
Mobile platform shadow depth bias multiplier.
Definition: Renderer.h:568
VertexBuffer * GetVertexBuffer(unsigned index) const
Return vertex buffer by index.
Definition: Geometry.cpp:191
Sound source component with three-dimensional position.
Definition: SoundSource3D.h:33
void AddReplicationState(NodeReplicationState *state) override
Add a replication state that is tracking this scene.
Definition: Scene.cpp:208
bool GetVSync() const
Return whether vertical sync is on.
Definition: Graphics.h:372
Vector3 Scale() const
Return the scaling part.
Definition: Matrix3x4.h:616
T & Front()
Return first element.
Definition: Vector.h:503
String fileName_
XML file name.
Definition: ShaderPrecache.h:54
Matrix4(const Matrix4 &matrix) noexcept
Copy-construct from another matrix.
Definition: Matrix4.h:71
bool WriteIntVector2(const IntVector2 &value)
Write an IntVector2.
Definition: Serializer.cpp:96
int GetLevel() const
Return logging level.
Definition: Log.h:95
Plane(const Vector3 &normal, const Vector3 &point) noexcept
Construct from a normal vector and a point on the plane.
Definition: Plane.h:50
Vector2 texCoord_
Texture coordinates.
Definition: CustomGeometry.h:40
void SetDefaultScene(Scene *scene)
Set immediate mode scene.
Definition: Script.cpp:218
void SetDragDropMode(DragAndDropModeFlags mode)
Set drag and drop flags.
Definition: UIElement.cpp:989
void UpdateMass()
Update mass and inertia to the Bullet rigid body. Readd body to world if necessary: if was in world a...
Definition: RigidBody.cpp:739
HashMap< unsigned long long, Vector< SharedPtr< Texture > > > screenBuffers_
Screen buffers by resolution and format.
Definition: Renderer.h:514
bool IsFixedRotation() const
Return fixed rotation.
Definition: RigidBody2D.h:144
void SetMinDirection(const Vector3 &direction)
Set negative direction limit.
Definition: ParticleEffect.cpp:490
Octree octant.
Definition: Octree.h:39
Timer()
Construct. Get the starting clock value.
Definition: Timer.cpp:195
Description of an automatically serializable variable.
Definition: Attribute.h:72
btCollisionConfiguration * collisionConfiguration_
Bullet collision configuration.
Definition: PhysicsWorld.h:304
void SetEntity(const String &entity)
Set entity name (skin name for spine, entity name for spriter).
Definition: AnimatedSprite2D.cpp:154
void SetShaderParameter(const String &name, const Variant &value)
Set a shader parameter in all commands that define it.
Definition: RenderPath.cpp:498
PODVector< Object * > receivers_
Receivers. May contain holes during sending.
Definition: Context.h:56
constexpr T & operator*() const
Dereference the object.
Definition: Iter.h:49
void SetView(Camera *camera)
Set the camera viewpoint. Call before rendering, or before adding geometry if you want to use culling...
Definition: DebugRenderer.cpp:76
Pair< unsigned, bool > CheckAvailableSizeAndEof() const
Check for available read data in buffer and whether end has been reached. Must only be called when th...
Definition: HttpRequest.cpp:299
void ProcessPendingLatestData()
Process pending latest data for nodes and components.
Definition: Connection.cpp:411
unsigned animationLodFrameNumber_
The frame number animation LOD distance was last calculated on.
Definition: AnimatedModel.h:233
void ClearDelayedExecute(const String &declaration=String::EMPTY)
Clear pending delay-executed method calls. If empty declaration given, clears all.
Definition: ScriptInstance.cpp:317
Connection(Context *context, bool isClient, const SLNet::AddressOrGUID &address, SLNet::RakPeerInterface *peer)
Construct with context, RakNet connection address and Raknet peer pointer.
Definition: Connection.cpp:71
void SetAddressMode(TextureCoordinate coord, TextureAddressMode mode)
Set addressing mode by texture coordinate.
Definition: Texture.cpp:80
void SetIsDesktop(bool enable)
Set whether requires desktop level hardware.
Definition: Technique.cpp:130
void BindColorAttachment(unsigned index, unsigned target, unsigned object, bool isRenderBuffer)
Bind a framebuffer color attachment using either extension or core functionality. Used only on OpenGL...
Definition: OGLGraphics.cpp:3287
Vector3 position_
Hit position in world space.
Definition: OctreeQuery.h:207
~SoundStream() override
Destruct.
StencilOp stencilZFail_
Stencil operation on depth fail.
Definition: Graphics.h:833
float nearClip_
Near clip distance.
Definition: Camera.h:248
DbConnection(Context *context, const String &connectionString)
Construct.
Definition: ODBCConnection.cpp:39
UIElement * GetFocusableElement(UIElement *element)
Return the first element in hierarchy that can alter focus.
Definition: UI.cpp:1294
void FixedUpdate(float timeStep) override
Perform fixed step pre-update.
Definition: RaycastVehicle.cpp:289
void MarkAnimationOrderDirty()
Mark animation and skinning to require a forced update (blending order changed).
Definition: AnimatedModel.cpp:1091
Queue that contains both instanced and non-instanced draw calls.
Definition: Batch.h:226
Vector< ModelMorph > morphs_
Vertex morphs.
Definition: AnimatedModel.h:217
void Insert(unsigned pos, const Vector< T > &vector)
Insert another vector at position.
Definition: Vector.h:297
bool IsApplyingTransforms() const
Return whether node dirtying should be disregarded.
Definition: PhysicsWorld2D.h:206
const dtCrowdAgent * GetDetourCrowdAgent(int agent) const
Get the detour crowd agent.
Definition: CrowdManager.cpp:685
bool FileExists(const String &fileName) const
Check if a file exists.
Definition: FileSystem.cpp:593
PODVector< unsigned char > * GetBufferPtr()
Return a pointer to a modifiable buffer or null on type mismatch.
Definition: Variant.h:1348
void RemoveBodyFromWorld()
Remove the rigid body from the physics world.
Definition: RigidBody.cpp:1028
void SetRenderOrder(unsigned char order)
Set 8-bit render order within pass. Default 128. Lower values will render earlier and higher values l...
Definition: Material.cpp:1105
Base class for creating applications which initialize the Urho3D engine and run a main loop until exi...
Definition: Application.h:35
Network interest management settings component.
Definition: NetworkPriority.h:31
Matrix3 Scaled(const Vector3 &scale) const
Return scaled by a vector.
Definition: Matrix3.h:229
AutoProfileBlock(Profiler *profiler, const char *name)
Construct. Begin a profiling block with the specified name and optional call count.
Definition: Profiler.h:235
float GetMaxForce() const
Return max force.
Definition: ConstraintMouse2D.h:56
Vector2() noexcept
Construct a zero vector.
Definition: Vector2.h:179
void SetPixelShaderDefines(const String &defines)
Set additional pixel shader defines. Separate multiple defines with spaces. Setting defines at the ma...
Definition: Material.cpp:944
void DefineTexCoord(const Vector2 &texCoord)
Define a vertex UV coordinate.
Definition: CustomGeometry.cpp:568
~DebugHud() override
Destruct.
Definition: DebugHud.cpp:105
void ApplyLimits()
Apply high and low constraint limits.
Definition: Constraint.cpp:539
bool operator!=(const WeakPtr< U > &rhs) const
Test for inequality with another weak pointer.
Definition: Ptr.h:433
VariantVector splineTangents_
Spline tangents.
Definition: ValueAnimation.h:167
Vector3 GetAngularFactor() const
Return angular degrees of freedom.
Definition: RigidBody.cpp:648
virtual void DelayedStart()
Called before the first update. At this point all other components of the node should exist....
Definition: LogicComponent.h:65
Vector3 emitterSize_
Emitter size.
Definition: ParticleEffect.h:377
void RemoveCollisionShape2D(CollisionShape2D *collisionShape)
Remove collision shape.
Definition: RigidBody2D.cpp:480
void SetAxis(const Vector3 &axis)
Set constraint rotation relative to own body by specifying the axis.
Definition: Constraint.cpp:197
const IntVector2 & GetHoverOffset() const
Return offset to image rectangle used on hover.
Definition: BorderImage.h:88
Integer AsInteger() const
Return underlying integer (constant).
Definition: FlagSet.h:226
void SetRotationStart(float rotationStart)
Set rotation start.
Definition: ParticleEffect2D.cpp:454
void HandleTouchMove(StringHash eventType, VariantMap &eventData)
Handle touch move event.
Definition: UI.cpp:1938
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: TerrainPatch.cpp:118
void Clear()
Clear to undefined state.
Definition: Sphere.h:143
const Vector< VariantVector > & GetRows() const
Return fetched rows collection. Filtered rows are not included in the collection.
Definition: ODBCResult.h:60
HashSet< const AttributeInfo * > animatedNetworkAttributes_
Animated network attribute set.
Definition: Animatable.h:153
void CalculateFixedScreenSize(const FrameInfo &frame)
Calculate billboard scale factors in fixed screen size mode.
Definition: BillboardSet.cpp:773
IntRect rect_
Viewport rectangle.
Definition: Viewport.h:107
FaceCameraMode faceCameraMode_
Billboard rotation mode in relation to the camera.
Definition: BillboardSet.h:170
Vector2 anchor_
Anchor.
Definition: ConstraintPrismatic2D.h:91
void SetDepthStencilName(const String &name)
Set depth-stencil output name. When empty, will assign a depth-stencil buffer automatically.
Definition: RenderPath.cpp:283
float GetRadius() const
Return radius.
Definition: CollisionCircle2D.h:51
Object * GetTarget() const
Return target object.
Definition: ValueAnimationInfo.cpp:119
RayQueryLevel
Graphics raycast detail level.
Definition: OctreeQuery.h:176
bool IsResizable() const
Return whether is resizable.
Definition: Window.h:104
float height_
Height on screen.
Definition: FontFace.h:50
MouseButtonFlags lastMouseButtons_
Last mouse button pressed.
Definition: UI.h:387
Geometry * geometry_
Geometry.
Definition: Batch.h:203
void Flush()
Flush any buffered output to the file.
Definition: File.cpp:408
float GetSplineTension() const
Return spline tension.
Definition: ValueAnimation.h:117
bool HasRequestedTarget() const
Return true when the agent has a target.
Definition: CrowdAgent.h:175
String ToString() const
Return as string.
Definition: Vector3.cpp:59
void SetCursorShape(CursorShape shape)
Set active cursor's shape.
Definition: UI.cpp:1329
IntVector3 ReadIntVector3()
Read an IntVector3.
Definition: Deserializer.cpp:152
Texture animation frame definition.
Definition: ParticleEffect.h:86
void Raycast(RayOctreeQuery &query) const
Return drawable objects by a ray query.
Definition: Octree.cpp:501
void SetEmitterType(EmitterType2D emitterType)
Set emitter type.
Definition: ParticleEffect2D.cpp:414
int GetPatchSize() const
Return patch quads per side.
Definition: Terrain.h:105
void ApplyFrames()
Apply constraint frames.
Definition: Constraint.cpp:363
void SetLinkedRenderTarget(RenderSurface *renderTarget)
Set linked color rendertarget.
Definition: RenderSurface.cpp:60
virtual void OnDeviceReset()
Recreate the GPU resource and restore data if applicable.
Definition: GPUObject.cpp:60
void HandleAsyncLoadFinished(StringHash eventType, VariantMap &eventData)
Handle scene loaded event.
Definition: Connection.cpp:1187
bool enabledPrev_
Last SetEnabled flag before any SetDeepEnabled.
Definition: UIElement.h:704
void SetLanguage(int index)
Set current language.
Definition: Localization.cpp:89
void ProcessExistingNode(Node *node, NodeReplicationState &nodeState)
Process a node that the client has already received.
Definition: Connection.cpp:1298
bool GetCollideConnected() const
Return collide connected.
Definition: Constraint2D.h:71
Vector< SharedPtr< ResourceRouter > > resourceRouters_
Resource routers.
Definition: ResourceCache.h:246
bool shadowed_
Shadowed flag.
Definition: VertexBuffer.h:170
Vector3 scale_
Bone scale.
Definition: Animation.h:62
HashSet< unsigned > dirtyNodes_
Dirty node IDs.
Definition: ReplicationState.h:180
Vector2 GetVSMShadowParameters() const
Return VSM shadow parameters.
Definition: Renderer.h:298
ScriptEventInvoker(ScriptFile *file, asIScriptObject *object=nullptr)
Constructor, will create the asILockableSharedBool if a ScriptObject is passed in.
Definition: ScriptFile.cpp:1021
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionChain2D.cpp:119
bool occluder_
Occluder flag.
Definition: Drawable.h:341
static void RegisterObject(Context *context)
Registers this class as an object factory.
Definition: IKConstraint.cpp:50
String GetFullName() const
Return full shader name.
Definition: ShaderVariation.h:111
void SetRowSpacing(float spacing)
Set row spacing, 1.0 for original font spacing.
Definition: Text.cpp:320
float edgeMaxError_
Edge max error.
Definition: NavigationMesh.h:332
unsigned GetShadowMask() const
Return shadow mask.
Definition: Drawable.h:201
bool GetEffectRoundStroke() const
Return effect round stroke.
Definition: Text.h:166
void CalculateLodErrors(TerrainPatch *patch)
Calculate LOD errors for a patch.
Definition: Terrain.cpp:1365
float time_
Time.
Definition: ParticleEffect.h:98
bool SetInt(const String &name, int value)
Set an integer attribute.
Definition: XMLElement.cpp:367
void RemoveSelection(unsigned index)
Remove item from the selection.
Definition: ListView.cpp:623
StencilOp stencilFail_
Stencil operation on fail.
Definition: Graphics.h:831
void SetLoadingPercentStyle(const String &style)
Sets the loading percent style.
Definition: ProgressBar.h:75
unsigned GetNumShadowMaps(bool allViews=false) const
Return number of shadow maps rendered.
Definition: Renderer.cpp:608
STL style iterator for Script dictionary class.
Definition: Addons.h:248
float HalfToFloat(unsigned short value)
Convert half float to float. From https://gist.github.com/martinkallman/5049614.
Definition: MathDefs.h:324
bool GetSelectOnClickEnd() const
Return whether reacts to click end instead of click start for item selection.
Definition: ListView.h:150
bool Empty() const
Return whether is empty.
Definition: Polyhedron.h:105
WeakPtr< RenderSurface > linkedDepthStencil_
Linked depth buffer.
Definition: RenderSurface.h:152
FocusParameters(bool focus, bool nonUniform, bool autoSize, float quantize, float minView)
Construct with initial values.
Definition: Light.h:125
Matrix4 GetProjection() const
Return projection matrix. It's in D3D convention with depth range 0 - 1.
Definition: Camera.cpp:440
void SetSelected(bool enable)
Set selected mode. Actual meaning is element dependent, for example constant hover or pressed effect.
Definition: UIElement.cpp:952
TGetFunction getFunction_
Get functor.
Definition: Serializable.h:177
static long long GetFrequency()
Return high-resolution timer frequency if supported.
Definition: Timer.h:65
void SetFrequencyHz(float frequencyHz)
Set frequency Hz.
Definition: ConstraintWeld2D.cpp:67
void ProcessMove(const IntVector2 &windowCursorPos, const IntVector2 &cursorDeltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, bool cursorVisible)
Handle mouse or touch move.
Definition: UI.cpp:1583
static void RegisterObject(Context *context)
Register object factory. Node must be registered first.
Definition: Scene.cpp:96
IntVector2 viewSize_
Viewport size.
Definition: Drawable.h:75
bool CheckAlignment() const
Check whether alignment supports moving and resizing.
Definition: Window.cpp:419
unsigned index_
Pass index.
Definition: Technique.h:148
static void DestructElements(T *dest, unsigned count)
Call the elements' destructors.
Definition: Vector.h:674
bool IsBullet() const
Return bullet mode.
Definition: RigidBody2D.h:147
CullMode cullMode_
Culling mode.
Definition: Technique.h:152
unsigned GetNumChars() const
Return number of characters.
Definition: Text.h:178
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: Text3D.cpp:69
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:40
unsigned target_
OpenGL target.
Definition: RenderSurface.h:144
void SetSelection(unsigned index)
Set selection.
Definition: DropDownList.cpp:183
void SetRolloffFactor(float factor)
Set rolloff power factor, defines attenuation function shape.
Definition: SoundSource3D.cpp:143
unsigned inSend_
"In send" recursion counter.
Definition: Context.h:60
bool subscribedPostFixed_
Subscribed to scene post and fixed update events flag.
Definition: ScriptInstance.h:212
CrowdAgentState GetAgentState() const
Return the agent's state.
Definition: CrowdAgent.cpp:491
LinkedListNode()
Construct.
Definition: LinkedList.h:39
static void RegisterObject(Context *context)
Register object factory.
Definition: Renderer2D.cpp:86
UIElement(Context *context)
Construct.
Definition: UIElement.cpp:95
unsigned priority_
Priority. Higher value = will be completed first.
Definition: WorkQueue.h:57
static void RegisterObject(Context *context)
Register object factory.
Definition: DebugRenderer.cpp:61
IntVector2 maxOffset_
Maximum offset.
Definition: UIElement.h:785
void OnDoubleClick(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse doubleclick.
Definition: LineEdit.cpp:132
const IntVector2 & GetNumVertices() const
Return heightmap size in vertices.
Definition: Terrain.h:111
void AdjustScissor(IntRect ¤tScissor)
Adjust scissor for rendering.
Definition: UIElement.cpp:1815
unsigned GetShadowMapFormat() const
Return shadow map depth texture format, or 0 if not supported.
Definition: Graphics.h:411
void UpdateGravity()
Update gravity parameters to the Bullet rigid body.
Definition: RigidBody.cpp:822
~DynamicNavBuildData() override
Destructor.
Definition: NavBuildData.cpp:78
bool exiting_
Exiting flag.
Definition: Engine.h:154
void SetAxis(const Vector2 &axis)
Set axis.
Definition: ConstraintWheel2D.cpp:72
void SetSpriteAttr(const ResourceRef &value)
Set sprite attribute.
Definition: StaticSprite2D.cpp:248
int x_
X coordinate.
Definition: Vector3.h:159
static void RegisterObject(Context *context)
Register object factory.
Definition: BorderImage.cpp:52
void FreeScratchBuffer(void *buffer)
Free a CPU-side scratch buffer.
Definition: Graphics.cpp:444
bool SetFont(const String &fontName, float size=DEFAULT_FONT_SIZE)
Set font by looking from resource cache by name and font size. Return true if successful.
Definition: Text.cpp:253
void Initialize()
Initialize when screen mode initially set.
Definition: Renderer.cpp:1578
void SetMinRadius(float minRadius)
Set min radius.
Definition: ParticleEffect2D.cpp:429
asIScriptFunction * methods_[MAX_SCRIPT_METHODS]
Pointers to supported inbuilt methods.
Definition: ScriptInstance.h:200
ProgressBar bar UI element.
Definition: ProgressBar.h:33
Color LinearToGamma() const
Convert color from linear to gamma space.
Definition: Color.h:216
void SetLightQueue(LightBatchQueue *queue)
Set light queue used for this light. Called by View.
Definition: Light.cpp:639
void AddData(void *data, unsigned numBytes)
Buffer sound data. Makes a copy of it.
Definition: BufferedSoundStream.cpp:70
btPersistentManifold * flippedManifold_
Manifold with the body pointers flipped.
Definition: PhysicsWorld.h:106
String linkerOutput_
Shader link error string.
Definition: OGLShaderProgram.h:107
DbConnection * Connect(const String &connectionString)
Create new database connection. Return 0 if failed.
Definition: Database.cpp:50
float GetTimeScale() const
Return update time scale.
Definition: Scene.h:196
Texture * textures_[MAX_TEXTURE_UNITS]
Textures in use.
Definition: Graphics.h:789
ValueAnimation(Context *context)
Construct.
Definition: ValueAnimation.cpp:49
unsigned vertexBufferUpdateFrameNumber_
Vertex buffer update frame number.
Definition: Renderer2D.h:46
void SetMaterial(Material *material)
Set material.
Definition: Text3D.cpp:181
StencilOp
Stencil operation.
Definition: GraphicsDefs.h:115
void HandleTouchEnd(StringHash eventType, VariantMap &eventData)
Handle touch end event.
Definition: UI.cpp:1908
unsigned indexCount_
Index count.
Definition: Renderer2D.h:48
void Rotate2D(float delta, TransformSpace space=TS_LOCAL)
Rotate the scene node in the chosen transform space (for Urho2D).
Definition: Node.h:249
void SetNextTimeStep(float seconds)
Override timestep of the next frame. Should be called in between RunFrame() calls.
Definition: Engine.cpp:592
~Constraint2D() override
Destruct.
Definition: Constraint2D.cpp:47
void RecreateFixture()
Recreate fixture.
Definition: CollisionCircle2D.cpp:90
bool emitting_
Currently emitting flag.
Definition: RibbonTrail.h:247
unsigned maxObstacles_
Maximum number of obstacle objects allowed.
Definition: DynamicNavigationMesh.h:142
Iterator Insert(const ConstIterator &it)
Insert a pair by iterator. Return iterator to the value.
Definition: HashMap.h:396
Component * GetComponent(unsigned id) const
Return component from the whole scene by ID, or null if not found.
Definition: Scene.cpp:733
T * Detach()
Detach without destroying the object even if the refcount goes zero. To be used for scripting languag...
Definition: Ptr.h:174
Log(Context *context)
Construct.
Definition: Log.cpp:61
float emissionRateMin_
Particles per second minimum.
Definition: ParticleEffect.h:391
void CleanupScratchBuffers()
Clean up too large scratch buffers.
Definition: Graphics.cpp:461
LoopMode2D
Loop mode.
Definition: AnimatedSprite2D.h:39
Geometry * GetQuadGeometry()
Return quad geometry used in postprocessing.
Definition: Renderer.cpp:831
void OnDeviceReset() override
Recreate the buffer and restore data if applicable. May be a no-op depending on the API.
Definition: OGLVertexBuffer.cpp:43
Vector< AnimationKeyFrame > keyFrames_
Keyframes.
Definition: Animation.h:98
Vector< WeakPtr< TileMapLayer2D > > layers_
Tile map layers.
Definition: TileMap2D.h:85
Vector< RenderTargetInfo > renderTargets_
Rendertargets.
Definition: RenderPath.h:248
Sound source component with stereo position. A sound source needs to be created to a node to be consi...
Definition: SoundSource.h:39
void RemoveChildAtIndex(unsigned index)
Remove a child element at index.
Definition: UIElement.cpp:1371
unsigned GetNumAttributes() const
Return number of attributes.
Definition: XMLElement.cpp:648
Vector2(const IntVector2 &vector) noexcept
Construct from an IntVector2.
Definition: Vector2.h:189
virtual void SetMaterial(Material *material)
Set material on all geometries.
Definition: StaticModel.cpp:275
Description of vertex buffer data for asynchronous loading.
Definition: Model.h:67
Object(Context *context)
Construct.
Definition: Object.cpp:76
void FinishAsyncLoading()
Finish asynchronous loading.
Definition: Scene.cpp:1254
bool Load(XMLFile *file)
Clear existing data and load from an XML file. Return true if successful.
Definition: RenderPath.cpp:321
void MixMonoToStereo(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix mono sample to stereo buffer.
Definition: SoundSource.cpp:677
float GetFontSize() const
Return font size.
Definition: Text.h:133
Variant(const IntVector3 &value)
Construct from an IntVector3.
Definition: Variant.h:487
~SoundSource() override
Destruct. Remove self from the audio subsystem.
Definition: SoundSource.cpp:125
void SetNetRotationAttr(const PODVector< unsigned char > &value)
Set network rotation attribute.
Definition: Node.cpp:1465
String GetLanguage()
Return the name of current language.
Definition: Localization.cpp:64
ResourceCache * owner_
Resource cache.
Definition: BackgroundLoader.h:80
void RemoveRenderTarget(unsigned index)
Remove a rendertarget by index.
Definition: RenderPath.cpp:440
ShadowQuality
Shadow type.
Definition: GraphicsDefs.h:365
ResourceRef GetScriptFileAttr() const
Return script file attribute.
Definition: ScriptInstance.cpp:484
IntVector2 GetTileIndex(const Vector3 &position) const
Return index of the tile at the position.
Definition: NavigationMesh.cpp:560
ResourceRef GetResourceRef() const
Return a resource reference attribute, or empty if missing.
Definition: XMLElement.cpp:873
UniquePtr & operator=(const UniquePtr &)=delete
Prevent assignment.
WeakPtr< Scene > scene_
Scene pointer.
Definition: Viewport.h:101
Vector< TextureFrame > textureFrames_
Texture animation frames.
Definition: ParticleEffect.h:421
IntVector2 size_
Size.
Definition: UIElement.h:773
void SetPixel(int x, int y, const Color &color)
Set a 2D pixel.
Definition: Image.cpp:921
void SendCollisionEvents()
Send accumulated collision events.
Definition: PhysicsWorld.cpp:837
static void RegisterObject(Context *context)
Register object factory.
Definition: Navigable.cpp:43
Node * EraseNode(Node *node)
Erase a node from the list. Return pointer to the next element, or to the end if could not erase.
Definition: HashSet.h:579
void Translate(const Vector3 &delta, TransformSpace space=TS_LOCAL)
Move the scene node in the chosen transform space.
Definition: Node.cpp:564
void ResetScene()
Reset scene, ID and owner. Called by Scene.
Definition: Node.cpp:1449
bool autoUpdate_
Render texture auto update mode.
Definition: View3D.h:99
bool systemDefined_
Whether the OS cursor is system defined.
Definition: Cursor.h:88
void WriteDeltaUpdate(Serializer &dest, const DirtyBits &attributeBits, unsigned char timeStamp)
Write a delta network update according to dirty attribute bits.
Definition: Serializable.cpp:771
ResourceRef GetTmxFileAttr() const
Return tile map file attribute.
Definition: TileMap2D.cpp:183
int height_
Height.
Definition: Image.h:67
Object * shadowMapFilterInstance_
Instance of shadow map filter.
Definition: Renderer.h:510
Object * GetSubsystem(StringHash type) const
Return subsystem by type.
Definition: Object.cpp:421
unsigned endPointID_
Endpoint node ID.
Definition: OffMeshConnection.h:80
void SetSize(const Vector3 &size)
Set shape size.
Definition: CollisionShape.cpp:738
bool GetData(unsigned level, void *dest) const
Get data from a mip level. The destination buffer must be big enough. Return true if successful.
Definition: OGLTexture2D.cpp:306
@ AM_NODEID
Attribute is a node ID and may need rewriting.
Definition: Attribute.h:49
unsigned lodLevel_
Current LOD level.
Definition: StaticModel.h:38
Hierarchical performance event profiler subsystem.
Definition: EventProfiler.h:62
~ProgressBar() override
Destruct.
unsigned hiresShadowMapFormat_
Shadow map 24-bit depth texture format.
Definition: Graphics.h:775
const HashMap< StringHash, AnimationTrack > & GetTracks() const
Return all animation tracks.
Definition: Animation.h:169
bool SetLooped(const String &name, bool enable)
Set animation looping. Return true on success.
Definition: AnimationController.cpp:394
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: Component.cpp:89
int width_
Buffer width.
Definition: OcclusionBuffer.h:189
IntVector2 maxSize_
Maximum size.
Definition: UIElement.h:777
IntRect imageRect_
Image rectangle.
Definition: Sprite.h:122
unsigned numObstacleAvoidanceTypes_
Number of obstacle avoidance types configured in the crowd. Limit to DT_CROWD_MAX_OBSTAVOIDANCE_PARAM...
Definition: CrowdManager.h:197
IntRect GetCombinedScreenRect()
Return combined screen coordinate rect of element and its children.
Definition: UIElement.cpp:1763
unsigned dataSize_
Index data size.
Definition: Model.h:87
Surface in three-dimensional space.
Definition: Plane.h:31
StringHash type_
Type.
Definition: Object.h:62
float fadeDistance_
Fade start distance.
Definition: Light.h:381
float GetAngularDamping() const
Return angular damping.
Definition: RigidBody2D.h:138
void NodeTagAdded(Node *node, const String &tag)
Cache node by tag if tag not zero, no checking if already added. Used internaly in Node::AddTag.
Definition: Scene.cpp:969
static String Joined(const Vector< String > &subStrings, const String &glue)
Return a string by joining substrings with a 'glue' string.
Definition: Str.cpp:1066
T Asin(T x)
Return arc sine in degrees.
Definition: MathDefs.h:148
void SetWindowIcon(Image *windowIcon)
Set window icon.
Definition: Graphics.cpp:80
float GetAgentRadius() const
Return navigation agent radius.
Definition: NavigationMesh.h:210
float GetFogHeight() const
Return fog height distance relative to the scene node's world position.
Definition: Zone.h:94
Tile2D * GetTile(int x, int y) const
Return tile (for tile layer only).
Definition: TileMapLayer2D.cpp:284
Quaternion ReadPackedQuaternion()
Read a quaternion with each component packed in 16 bits.
Definition: Deserializer.cpp:203
const void * parameterSources_[MAX_SHADER_PARAMETER_GROUPS]
Remembered shader parameter sources for individual uniform mode.
Definition: OGLShaderProgram.h:105
bool SetEntity(int index)
Set current entity.
Definition: SpriterInstance2D.cpp:53
void SetClearSelectionOnDefocus(bool enable)
Enable clearing of selection on defocus.
Definition: ListView.cpp:754
Base class for collision shape geometry data.
Definition: CollisionShape.h:67
WeakPtr(WeakPtr< T > &&rhs) noexcept
Move-construct from another weak pointer.
Definition: Ptr.h:289
Geometry * GetLodGeometry(unsigned batchIndex, unsigned level) override
Return the geometry for a specific LOD level.
Definition: StaticModel.cpp:156
bool dynamic_
Vertex buffer dynamic flag.
Definition: CustomGeometry.h:178
bool Remove(const T &value)
Erase an element by value. Return true if was found and erased.
Definition: Vector.h:395
unsigned GetChainLength() const
Returns the number of segments that will be affected by this effector. 0 Means all nodes between this...
Definition: IKEffector.cpp:152
unsigned xpathResultIndex_
Current XPath query result index (used internally to advance to subsequent query result).
Definition: XMLElement.h:315
int GetPositionIterations() const
Return position iterations.
Definition: PhysicsWorld2D.h:197
Vector3 spacing_
Vertex and height spacing.
Definition: Terrain.h:267
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: AnimatedModel.cpp:959
~FontFaceBitmap() override
Destruct.
Connection * owner_
Network owner connection.
Definition: Node.h:63
PODVector(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: Vector.h:722
void SetAbsoluteGlyphOffset(const IntVector2 &offset)
Set absolute (in pixels) position adjustment for glyphs.
Definition: Font.cpp:129
void SetAnimationsAttr(const VariantVector &value)
Set animation control structures attribute.
Definition: AnimationController.cpp:594
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix4.h:663
bool HasParameter(StringHash param) const
Return whether uses a parameter. Not applicable on OpenGL, where this information is contained in Sha...
Definition: ShaderVariation.h:114
void Pop()
Erase the last element.
Definition: List.h:316
Iterator(Node *ptr)
Construct with a node pointer.
Definition: List.h:64
float fogEnd_
Fog end distance.
Definition: Zone.h:158
unsigned indexSize_
Index size in bytes.
Definition: OcclusionBuffer.h:76
unsigned totalCount_
Total accumulated calls.
Definition: Profiler.h:168
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: BorderImage.cpp:70
void ResetLod()
Reset to LOD level 0.
Definition: TerrainPatch.cpp:243
void ResetUseTimer()
Reset last used timer.
Definition: Resource.cpp:110
void CancelUpdate(Drawable *drawable)
Cancel drawable object's update.
Definition: Octree.cpp:564
unsigned GetTileGid() const
Return tile Gid.
Definition: TileMapDefs2D.h:191
int WeakRefs() const
Return weak reference count.
Definition: RefCounted.cpp:73
void SetName(const String &name)
Set name.
Definition: Resource.cpp:99
void SetPriority(int priority)
Set zone priority. If an object or camera is inside several zones, the one with highest priority is u...
Definition: Zone.cpp:148
General octree query result. Used for Lua bindings only.
Definition: OctreeQuery.h:157
void RegisterFactory()
Template version of registering an object factory.
Definition: Context.h:249
float MinRGB() const
Return the smallest value of the RGB components.
Definition: Color.cpp:205
const nanodbc::connection * GetConnectionImpl() const
Return the underlying implementation connection object pointer. It is sqlite* when using SQLite3 or n...
Definition: ODBCConnection.h:53
PODVector< unsigned > printToText_
Mapping of printed form back to original char indices.
Definition: Text.h:257
void SetAsyncLoadingMs(int ms)
Set maximum milliseconds per frame to spend on async scene loading.
Definition: Scene.cpp:667
Ray ray_
Ray.
Definition: OctreeQuery.h:246
unsigned dataSize_
Sound data size in bytes.
Definition: Sound.h:122
unsigned GetSelectionLength() const
Return selection length.
Definition: Text.h:154
unsigned GetNumRows() const
Return number of displayed rows.
Definition: Console.h:105
Vector< DelayedCall > delayedCalls_
Delayed method calls.
Definition: ScriptInstance.h:202
bool quiet_
Quiet mode flag.
Definition: Log.h:130
~Context() override
Destruct.
Definition: Context.cpp:135
const Vector2 & GetAxis() const
Return axis.
Definition: ConstraintWheel2D.h:62
float offsetX_
Glyph X offset from origin.
Definition: FontFace.h:52
int CalculateLayoutParentSize(const PODVector< int > &sizes, int begin, int end, int spacing)
Calculate layout width for resizing the parent element.
Definition: UIElement.cpp:2077
void ClearSelection()
Clear selection.
Definition: Text.cpp:378
ResourceRouter(Context *context)
Construct.
Definition: ResourceCache.h:73
float rolloffFactor_
Rolloff power factor.
Definition: SoundSource3D.h:90
asIScriptEngine * scriptEngine_
AngelScript engine.
Definition: Script.h:129
float timeToLiveMax_
Particle time to live maximum.
Definition: ParticleEffect.h:401
unsigned char data_[MAX_NETWORK_ATTRIBUTES/8]
Bit data.
Definition: ReplicationState.h:115
Urho3D engine. Creates the other subsystems.
Definition: Engine.h:35
float emitRadiusDelta_
Emit radius delta.
Definition: ParticleEmitter2D.h:68
void RemoveChild(Node *node)
Remove a child scene node.
Definition: Node.cpp:866
Scripting subsystem. Allows execution of AngelScript.
Definition: Script.h:56
SharedPtr< Font > font_
Font.
Definition: Text.h:219
void SetNetAngularVelocityAttr(const PODVector< unsigned char > &value)
Set network angular velocity attribute.
Definition: RigidBody.cpp:848
Per-user node network replication state.
Definition: ReplicationState.h:156
void Insert(unsigned pos, const T &value)
Insert an element at position.
Definition: Vector.h:867
JSONNumberType GetNumberType() const
Return number type.
Definition: JSONValue.cpp:171
UniquePtr< NodeImpl > impl_
Pointer to implementation.
Definition: Node.h:703
void SetScriptObjectType(const String &scriptObjectType)
Set script object type.
Definition: LuaScriptInstance.cpp:408
AttributeInfo * networkAttributeInfo_
Network attribute info.
Definition: Attribute.h:131
asIScriptModule * GetScriptModule() const
Return script module.
Definition: ScriptFile.h:106
lua_State * luaState_
Lua state.
Definition: LuaScript.h:119
Ref.
Definition: SpriterData2D.h:178
bool GetUpdateInvisible() const
Return whether to update when particles are not visible.
Definition: ParticleEffect.h:233
int weakRefs_
Weak reference count.
Definition: RefCounted.h:55
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Sprite2D.cpp:54
Iterator()=default
Construct.
void UpdateEventSubscription()
Subscribe/unsubscribe from scene updates as necessary.
Definition: ScriptInstance.cpp:763
FlagSet(const Enum value)
Construct from Enum value.
Definition: FlagSet.h:67
Intersection IsInside(const Sphere &sphere) const
Test if a sphere is inside, outside or intersects.
Definition: Frustum.h:95
void SetModal(bool modal)
Set modal flag. When the modal flag is set, the focused window needs to be dismissed first to allow o...
Definition: Window.cpp:280
unsigned GetZoneMask() const
Return zone mask.
Definition: Terrain.h:178
void SetIdentity(const VariantMap &identity)
Assign identity. Called by Network.
Definition: Connection.cpp:220
Intersection IsInside(const BoundingBox &box) const
Test if another bounding box is inside, outside or intersects.
Definition: BoundingBox.h:290
unsigned numLevels_
Subdivision level.
Definition: Octree.h:216
AttributeInfo * attributeInfo_
Attribute info.
Definition: Attribute.h:129
Type info.
Definition: Object.h:38
bool IsSelected() const
Return whether is selected. Actual meaning is element dependent.
Definition: UIElement.h:520
VertexMaskFlags morphElementMask_
Morph vertex element mask.
Definition: AnimatedModel.h:235
Color(const float *data) noexcept
Construct from a float array.
Definition: Color.h:93
Cached state of a frame buffer object.
Definition: OGLGraphicsImpl.h:84
void OnPackageDownloadFailed(const String &name)
Handle a package download failure on the client.
Definition: Connection.cpp:1585
void SetTextAttr(const String &value)
Set text attribute.
Definition: Text.cpp:454
T Round(T x)
Round value to nearest integer.
Definition: MathDefs.h:194
bool GetTimeStamp() const
Return whether log messages are timestamped.
Definition: Log.h:98
StringHash GetStringHash() const
Return StringHash or zero on type mismatch.
Definition: Variant.h:1143
bool GetReturnFailedResources() const
Return whether resources that failed to load are returned.
Definition: ResourceCache.h:190
bool HasContent() const
Return whether has something to render.
Definition: DebugRenderer.cpp:646
unsigned historyPosition_
Command history current position.
Definition: Console.h:170
PODVector< Vector3 > outFace_
Internal vector for the new face being constructed.
Definition: Polyhedron.h:118
@ JOINT_ROTATIONS
Should be enabled if your model uses skinning or if you are generally interested in correct joint rot...
Definition: IKSolver.h:74
HandlerFunctionPtr function_
Class-specific pointer to handler function.
Definition: Object.h:326
void UpdateText()
Update displayed text.
Definition: LineEdit.cpp:565
OffMeshConnection(Context *context)
Construct.
Definition: OffMeshConnection.cpp:41
void AddKnot(const Variant &knot)
Add a knot to the end of the spline.
Definition: Spline.cpp:118
float GetRandomTimeToLive() const
Return random timetolive.
Definition: ParticleEffect.cpp:806
void SetDepthStencil(RenderSurface *depthStencil)
Set depth-stencil surface.
Definition: OGLGraphics.cpp:1676
AttributeInfo(VariantType type, const char *name, const SharedPtr< AttributeAccessor > &accessor, const char **enumNames, const Variant &defaultValue, AttributeModeFlags mode)
Construct attribute.
Definition: Attribute.h:78
Base class for components. Components can be created to scene nodes.
Definition: Component.h:47
void SetFloat(float value)
Set float.
Definition: PListFile.cpp:146
void Compact()
Reallocate so that no extra memory is used.
Definition: Vector.h:1089
void SetMask(unsigned newMask)
Set a user assigned mask.
Definition: OffMeshConnection.cpp:101
const VariantVector & GetVariantVector() const
Return a variant vector or empty on type mismatch.
Definition: Variant.h:1232
void SetSize(const IntVector2 &size)
Set size.
Definition: UIElement.cpp:548
void SetWeight(float weight)
Sets how much influence the effector has on the solution.
Definition: IKEffector.cpp:175
Variant(void *value)
Construct from a pointer.
Definition: Variant.h:433
Resource cache subsystem. Loads resources on demand and stores them for later access.
Definition: ResourceCache.h:83
unsigned color_
Current color. By default calculated from the element.
Definition: UIBatch.h:93
virtual bool DrawOcclusion(OcclusionBuffer *buffer)
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: Drawable.cpp:162
String animationName_
Animation name.
Definition: AnimatedSprite2D.h:134
void Insert(unsigned pos, const T &value)
Insert an element at position.
Definition: Vector.h:285
WeakPtr< T > & operator=(const SharedPtr< T > &rhs)
Assign from a shared pointer.
Definition: Ptr.h:328
HttpRequestState
HTTP connection state.
Definition: HttpRequest.h:37
unsigned short GetPort() const
Return remote port.
Definition: Connection.h:213
SharedArrayPtr< char > data_
File data.
Definition: LuaFile.h:60
void ConvexCast(PhysicsRaycastResult &result, CollisionShape *shape, const Vector3 &startPos, const Quaternion &startRot, const Vector3 &endPos, const Quaternion &endRot, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world swept convex test using a user-supplied collision shape and return the first ...
Definition: PhysicsWorld.cpp:520
unsigned GetNumObjects() const
Return number of tile map objects (for object group only).
Definition: TileMapLayer2D.cpp:303
void SetMaxSuspensionTravel(int wheel, float maxSuspensionTravel)
Set maximum suspension travel value.
Definition: RaycastVehicle.cpp:606
Vector2 highLimit_
High limit.
Definition: Constraint.h:191
VariantMap physicsCollisionData_
Preallocated event data map for physics collision events.
Definition: PhysicsWorld.h:334
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: ScriptFile.cpp:151
void SetTmxFile(TmxFile2D *tmxFile)
Set tmx file.
Definition: TileMap2D.cpp:116
bool GetHDRRendering() const
Return whether HDR rendering is enabled.
Definition: Renderer.h:268
RenderSurface * GetRenderSurface(CubeMapFace face) const
Return render surface for one face.
Definition: TextureCube.h:74
~DecalSet() override
Destruct.
void SetMaxSpeed(float maxSpeed)
Set the agent's max velocity.
Definition: CrowdAgent.cpp:389
SDL_Window * window_
SDL window.
Definition: Graphics.h:712
VariantMap metadata_
Attribute metadata.
Definition: Attribute.h:114
void SetNumBufferedRows(unsigned rows)
Set number of buffered rows.
Definition: Console.cpp:192
const Variant & GetGlobalVar(StringHash key) const
Return global variable based on key.
Definition: Context.cpp:363
XMLFile * GetDefaultStyle() const
Return the UI style file.
Definition: FileSelector.cpp:251
Node * GetNode(unsigned id) const
Return node from the whole scene by ID, or null if not found.
Definition: Scene.cpp:706
WeakPtr< Constraint2D > ownerConstraint_
Owner body constraint.
Definition: ConstraintGear2D.h:66
float rotationSpeedMax_
Particle rotation speed maximum.
Definition: ParticleEffect.h:413
void LoadShaders()
Reload shaders.
Definition: Renderer.cpp:1616
Component * GetFixedUpdateSource()
Return a component from the scene root that sends out fixed update events (either PhysicsWorld or Phy...
Definition: Component.cpp:290
Hierarchical collection of bones.
Definition: Skeleton.h:86
b2EdgeShape edgeShape_
Edge shape.
Definition: CollisionEdge2D.h:63
Vector3 direction_
Ray direction.
Definition: Ray.h:112
void RefreshShaderParameterHash()
Recalculate shader parameter hash.
Definition: Material.cpp:1285
void SetEffectColor(const Color &effectColor)
Set effect color.
Definition: Text3D.cpp:298
float GetRepeatRate() const
Return paging minimum repeat rate (number of events per second).
Definition: Slider.h:91
float GetFrequencyHz() const
Return frequency Hz.
Definition: ConstraintDistance2D.h:61
void SetStartParticleSizeVariance(float startParticleSizeVariance)
Set start particle size variance.
Definition: ParticleEffect2D.cpp:394
WeakPtr< PhysicsWorld2D > physicsWorld_
Physics world.
Definition: Constraint2D.h:94
float GetValue() const
Return ProgressBar current value.
Definition: ProgressBar.h:69
IntVector2() noexcept
Construct a zero vector.
Definition: Vector2.h:36
void SetCollisionLayer(unsigned layer)
Set collision layer.
Definition: RigidBody.cpp:479
bool SetData(unsigned level, int x, int y, int width, int height, const void *data)
Set data either partially or fully on a mip level. Return true if successful.
Definition: OGLTexture2D.cpp:105
Navigable(Context *context)
Construct.
Definition: Navigable.cpp:35
Dirty attribute bits structure for network replication.
Definition: ReplicationState.h:49
ListView * GetFileList() const
Return file list.
Definition: FileSelector.h:90
Scene * scene_
Scene (root node).
Definition: Node.h:685
static const Color CYAN
Opaque cyan color.
Definition: Color.h:277
Vector3(float x, float y) noexcept
Construct from two-dimensional coordinates (for Urho2D).
Definition: Vector3.h:231
String windowTitle_
Window title.
Definition: Graphics.h:714
Node * EraseNode(Node *node)
Erase a node from the list. Return pointer to the next element, or to the end if could not erase.
Definition: HashMap.h:719
virtual ~Deserializer()
Destruct.
IntVector2 shadowOffset_
Text effect shadow offset.
Definition: Text.h:241
DirtyBits dirtyAttributes_
Dirty attribute bits.
Definition: ReplicationState.h:163
BoundingBox GetTileBoundingBox(const IntVector2 &tile) const
Return bounding box of the tile in the node space.
Definition: NavigationMesh.cpp:544
void SetWheelRadius(int wheel, float wheelRadius)
Set wheel radius.
Definition: RaycastVehicle.cpp:555
bool IsUpdateEnabled() const
Return whether physics world will automatically simulate during scene update.
Definition: PhysicsWorld2D.h:162
WeakPtr< Constraint2D > attachedConstraint_
Attached constraint.
Definition: Constraint2D.h:108
SharedArrayPtr< unsigned char > shadowData_
Shadow data.
Definition: ConstantBuffer.h:66
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Animation.cpp:127
PODVector< unsigned char > GetVerticesAttr() const
Return vertices attribute.
Definition: CollisionPolygon2D.cpp:96
void SetMaxOccluderTriangles(int triangles)
Set maximum number of occluder triangles.
Definition: Renderer.cpp:486